From 13a9cde133ac82e33dd091ca9bb9c677804afbe1 Mon Sep 17 00:00:00 2001 From: Lucidiot Date: Thu, 31 Mar 2022 14:39:28 +0200 Subject: Fixed #33613 -- Made createsuperuser detect uniqueness of USERNAME_FIELD when using Meta.constraints. --- docs/topics/auth/customizing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index ca1c39bd8e..382fc94a6b 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -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. -- cgit v1.3