mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Clarified docs for default email value in UserManager.create_user().
This commit is contained in:
parent
f609a2da86
commit
5da3ad7bf9
1 changed files with 3 additions and 0 deletions
|
@ -322,6 +322,9 @@ Manager methods
|
|||
:meth:`~django.contrib.auth.models.User.set_unusable_password()` will
|
||||
be called.
|
||||
|
||||
If no email is provided, :attr:`~django.contrib.auth.models.User.email`
|
||||
will be set to an empty string.
|
||||
|
||||
The ``extra_fields`` keyword arguments are passed through to the
|
||||
:class:`~django.contrib.auth.models.User`’s ``__init__`` method to
|
||||
allow setting arbitrary fields on a :ref:`custom user model
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue