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:
Chris Beaven 2011-06-28 04:29:48 +00:00
parent d400ff4f13
commit f54135fa4d
3 changed files with 17 additions and 2 deletions

View file

@ -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`.