diff options
| author | Chris Beaven <smileychris@gmail.com> | 2011-06-28 04:29:48 +0000 |
|---|---|---|
| committer | Chris Beaven <smileychris@gmail.com> | 2011-06-28 04:29:48 +0000 |
| commit | f54135fa4dc9fd45d86ea2944191d58e00725779 (patch) | |
| tree | a9bb37190020a6aa8c9a8fb1adb03ce9f8b01e08 /docs | |
| parent | d400ff4f139c05d205066ae07a30ac9156cb8468 (diff) | |
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/auth.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt index c1947f61e1..a50e24c0df 100644 --- a/docs/topics/auth.txt +++ b/docs/topics/auth.txt @@ -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`. |
