#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.a47e9576d320e05aff1d52708486df76%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to