summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2012-03-02 16:56:20 +0000
committerJannis Leidel <jannis@leidel.info>2012-03-02 16:56:20 +0000
commitfcaf8eae14d0a7f884328bdf0238dd1e2881c681 (patch)
tree386f865aeab08c3a929d1fb17861d60ad5f346cf /docs
parent40b248acc76c833710e58f2539563b8bbaee4336 (diff)
Fixed #17046 -- Added a check if the username passed to User.objects.create_user is empty or not. Thanks, kwadrat.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17628 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/auth.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt
index 08a8f342c5..6b262be47f 100644
--- a/docs/topics/auth.txt
+++ b/docs/topics/auth.txt
@@ -280,7 +280,9 @@ Manager functions
.. method:: models.UserManager.create_user(username, email=None, password=None)
.. versionchanged:: 1.4
- The ``email`` parameter was made optional.
+ The ``email`` parameter was made optional. The username
+ parameter is now checked for emptiness and raises a
+ :exc:`ValueError` in case of a negative result.
Creates, saves and returns a :class:`~django.contrib.auth.models.User`.