I recommend : DON'T, because it is by default UserIdentifier, It is used to make UserLogins and you have to override a lot of builtIns to achieve what you are trying to do.
On Sunday, July 29, 2018 at 5:14:23 PM UTC+5:30, lalitaquasoft wrote:
-- But if you still want to:
`username` validator is defined in AbstractUser Class, and inheritence flow is like:
AbstractUser -> User
i believe only way to overide this validation is to create a Proxy Model
On Sunday, July 29, 2018 at 5:14:23 PM UTC+5:30, lalitaquasoft wrote:
IntegrityError at /register/
UNIQUE constraint failed: superuser_user.usernameHow to remove Unique username
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9405b6fd-afb1-439e-83f5-e26cb749932f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment