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
This commit is contained in:
Luke Plant 2006-02-01 18:43:23 +00:00
parent 8df94de53b
commit 9dc4aa97ff
1 changed files with 1 additions and 1 deletions

View File

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