#34542: Required fields not enforced when interactively using createsuperuser
-------------------------------------+-------------------------------------
Reporter: Lantizia | Owner: nobody
Type: Bug | Status: closed
Component: contrib.auth | Version: dev
Severity: Normal | Resolution: invalid
Keywords: auth | Triage Stage:
createsuperuser superuser email | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Natalia Bidart):
* status: new => closed
* resolution: => invalid
Comment:
Hello! The email field for the provided User class from
django.contrib.auth does indeed require the email. But the email is
allowed to be the empty string (`blank=True` in the model), so when
creating users via a django web form or interactively, one can pass the
empty string as value and that is accepted.
In summary, the email field is required but it can be blank.
--
Ticket URL: <https://code.djangoproject.com/ticket/34542#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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070187ec8c4e77-58ef215e-6492-4842-890e-5b2829c035bc-000000%40eu-central-1.amazonses.com.