mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Make the email parameter of User.objects.create_user optional.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16472 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d400ff4f13
commit
f54135fa4d
3 changed files with 17 additions and 2 deletions
|
@ -277,7 +277,10 @@ Manager functions
|
|||
The :class:`~django.contrib.auth.models.User` model has a custom manager
|
||||
that has the following helper functions:
|
||||
|
||||
.. method:: models.UserManager.create_user(username, email, password=None)
|
||||
.. method:: models.UserManager.create_user(username, email=None, password=None)
|
||||
|
||||
.. versionchanged:: 1.4
|
||||
The ``email`` parameter was made optional.
|
||||
|
||||
Creates, saves and returns a :class:`~django.contrib.auth.models.User`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue