[Django] #25557: Fix the admin user creation form for custom user model

8 views
Skip to first unread message

Django

unread,
Oct 15, 2015, 10:41:00 AM10/15/15
to django-...@googlegroups.com
#25557: Fix the admin user creation form for custom user model
-------------------------------+-------------------------------
Reporter: dulaccc | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.9a1
Severity: Normal | Keywords: admin,custom,user
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+-------------------------------
The admin user creation form was trying to set the `username` field of the
User model, but that field does not exists for sure in case of a custom
user model.

But this *field* should be referred as `User.USERNAME_FIELD` to fully
support Usual and Custom user models.

I've prepared a pull request associated to it :
https://github.com/django/django/pull/5432

Cheers

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

Django

unread,
Oct 17, 2015, 2:51:28 PM10/17/15
to django-...@googlegroups.com
#25557: Fix the UserCreationForm for custom user model
-----------------------------------+--------------------------------------
Reporter: dulaccc | Owner: nobody
Type: Bug | Status: closed
Component: contrib.auth | Version: 1.9a1
Severity: Normal | Resolution: duplicate

Keywords: admin,custom,user | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by timgraham):

* status: new => closed
* needs_better_patch: => 0
* component: contrib.admin => contrib.auth
* needs_tests: => 0
* needs_docs: => 0
* resolution: => duplicate


Comment:

Duplicate of #19353. Tests and documentation updates are also required as
noted in that ticket if you'd like to try to finish it.

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

Reply all
Reply to author
Forward
0 new messages