#31972: AuthenticationForm.UsernameField does not change field widget according 
to
USERNAME_FIELD.
-------------------------------------+-------------------------------------
     Reporter:  Maksudul Haque       |                    Owner:  Maksudul
                                     |  Haque
         Type:  New feature          |                   Status:  closed
    Component:  contrib.auth         |                  Version:  3.1
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  forms,               |             Triage Stage:
  AuthenticationForm                 |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by felixxm):

 * status:  assigned => closed
 * resolution:   => wontfix
 * type:  Bug => New feature
 * component:  Forms => contrib.auth


Comment:

 Yes it's intentional, this isn't worth the extra complexity.
 [https://docs.djangoproject.com/en/3.1/topics/auth/customizing/#custom-
 users-and-the-built-in-auth-forms The built-in auth forms] make several
 assumptions about the user model. You need to create a subclass of
 `AuthenticationForm` if you want to use a different widget.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31972#comment:2>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.dc8dc5618ac537ec588b848a5b3e0876%40djangoproject.com.

Reply via email to