From f54135fa4dc9fd45d86ea2944191d58e00725779 Mon Sep 17 00:00:00 2001 From: Chris Beaven Date: Tue, 28 Jun 2011 04:29:48 +0000 Subject: 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 --- docs/topics/auth.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs') 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`. -- cgit v1.3