mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #33613 -- Made createsuperuser detect uniqueness of USERNAME_FIELD when using Meta.constraints.
This commit is contained in:
committed by
Mariusz Felisiak
parent
ae506181f7
commit
13a9cde133
@@ -548,7 +548,7 @@ password resets. You must then provide some key implementation details:
|
||||
A string describing the name of the field on the user model that is
|
||||
used as the unique identifier. This will usually be a username of some
|
||||
kind, but it can also be an email address, or any other unique
|
||||
identifier. The field *must* be unique (i.e., have ``unique=True`` set
|
||||
identifier. The field *must* be unique (e.g. have ``unique=True`` set
|
||||
in its definition), unless you use a custom authentication backend that
|
||||
can support non-unique usernames.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user