#30066: UserManager.create_superuser doesn't allow for omitting email or
password,
unlike create_user which does.
-------------------------------------+-------------------------------------
Reporter: Joshua | Owner: nobody
Cannon |
Type: Bug | Status: new
Component: | Version: 2.1
contrib.auth |
Severity: Normal | Keywords: create_superuser
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
I couldn't find any historical information on whether or not this is
intentional, but `create_user`/`create_superuser` seem to mirror each
other except that `create_superuser` doesn't allow the caller to omit
`email` and `password` parameters.
[https://github.com/django/django/commit/fd2b99b5f122911b895987329507ee419a159a2c
This commit] introduced omitting `password`, and
[https://github.com/django/django/commit/f54135fa4dc9fd45d86ea2944191d58e00725779
this commit] introduced omitting `email`, but neither touches
`create_superuser`.
--
Ticket URL: <https://code.djangoproject.com/ticket/30066>
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/053.b36e08a371816414ab60d919186880f6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.