From 9dc4aa97ff6d7fd52ca3958b18311cc062effd91 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Wed, 1 Feb 2006 18:43:23 +0000 Subject: [PATCH] magic-removal: Fixed #1306 - Auth Manager now uses .model not .klass. Thanks jpaulofarias git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2215 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/auth/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py index 025c480e89..5af223fa6d 100644 --- a/django/contrib/auth/models.py +++ b/django/contrib/auth/models.py @@ -39,7 +39,7 @@ class UserManager(models.Manager): def create_user(self, username, email, password): "Creates and saves a User with the given username, e-mail and password." now = datetime.datetime.now() - user = self.klass(None, username, '', '', email.strip().lower(), 'placeholder', False, True, False, now, now) + user = self.model(None, username, '', '', email.strip().lower(), 'placeholder', False, True, False, now, now) user.set_password(password) user.save() return user