Skip to content

Commit 4a04944

Browse files
amirreza8002nessita
authored andcommitted
[5.1.x] Clarified docs for default email value in UserManager.create_user().
Backport of 5da3ad7 from main.
1 parent b814f4c commit 4a04944

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/ref/contrib/auth.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ Manager methods
284284
:meth:`~django.contrib.auth.models.User.set_unusable_password()` will
285285
be called.
286286

287+
If no email is provided, :attr:`~django.contrib.auth.models.User.email`
288+
will be set to an empty string.
289+
287290
The ``extra_fields`` keyword arguments are passed through to the
288291
:class:`~django.contrib.auth.models.User`’s ``__init__`` method to
289292
allow setting arbitrary fields on a :ref:`custom user model

0 commit comments

Comments
 (0)