[Django] #31876: UserManager._create_user does not respect USERNAME_FIELD

9 views
Skip to first unread message

Django

unread,
Aug 10, 2020, 2:38:26 PM8/10/20
to django-...@googlegroups.com
#31876: UserManager._create_user does not respect USERNAME_FIELD
----------------------------------------+------------------------
Reporter: 0az | Owner: nobody
Type: Bug | Status: new
Component: contrib.auth | Version: 3.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
----------------------------------------+------------------------
In the default UserManager, create_user and create_superuser do not
respect USERNAME_FIELD.

--
Ticket URL: <https://code.djangoproject.com/ticket/31876>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 10, 2020, 2:51:16 PM8/10/20
to django-...@googlegroups.com
#31876: UserManager._create_user does not respect USERNAME_FIELD
------------------------------+--------------------------------------
Reporter: 0az | Owner: nobody
Type: Bug | Status: closed
Component: contrib.auth | Version: 3.1
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => invalid
* easy: 1 => 0


Comment:

Please check the
[https://docs.djangoproject.com/en/3.1/topics/auth/customizing/#writing-a
-manager-for-a-custom-user-model docs], you should define a custom manager
for a custom user model.

--
Ticket URL: <https://code.djangoproject.com/ticket/31876#comment:1>

Reply all
Reply to author
Forward
0 new messages