#34542: Required fields allowed to be blank are not accepted non-interactively
using createsuperuser
-------------------------------------+-------------------------------------
     Reporter:  Lantizia             |                    Owner:  Anvansh
                                     |  Singh
         Type:  Bug                  |                   Status:  assigned
    Component:  contrib.auth         |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:  auth                 |             Triage Stage:  Accepted
  createsuperuser superuser email    |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mateusz Więckowski):

 When passing DJANGO_SUPERUSER_EMAIL:

 {{{
 py manage.py createsuperuser --username username
 }}}
 Prompts for email, allows it to be blank, doesn't get value from
 DJANGO_SUPERUSER_EMAIL.

 {{{
 py manage.py createsuperuser --email "" --username username
 }}}
 Doesn't prompt for email, doesn't get value from DJANGO_SUPERUSER_EMAIL,
 sets email blank.

 {{{
 py manage.py createsuperuser --email "" --username username --noinput
 py manage.py createsuperuser --username username --noinput
 }}}
 Doesn't prompt, gets value from DJANGO_SUPERUSER_EMAIL.

 I believe it works how it's supposed to. Is that correct?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34542#comment:19>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701898c7369c6-c83396b0-a2f9-480a-9adf-fe6d9a7ea07f-000000%40eu-central-1.amazonses.com.

Reply via email to