#20646: Overriding User::REQUIRED_FIELDS works for creating su, but not in admin
site
----------------------------------+--------------------
     Reporter:  ChocolateCookies  |      Owner:  nobody
         Type:  Bug               |     Status:  new
    Component:  contrib.auth      |    Version:  1.5
     Severity:  Normal            |   Keywords:
 Triage Stage:  Unreviewed        |  Has patch:  0
Easy pickings:  0                 |      UI/UX:  0
----------------------------------+--------------------
 In core/models.py:
 {{{
 class User( AbstractUser ):
         REQUIRED_FIELDS = [ 'first_name', 'last_name', 'email' ]
         USERNAME_FIELD = 'username'
 }}}
 In settings.py
 {{{
 AUTH_USER_MODEL = 'core.User'
 }}}

 When {{{manage.py syncdb}}} is called, the Superuser creation wizard
 properly asks for first name, last name and email, in addition to username
 and password.

 However, when creating a User in the admin interface, the fields first
 name, last name and email address can be left blank. Should this be the
 case, or is it a bug?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20646>
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/059.9533cd647d412ba234777763fe77af84%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to