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:
parent
8df94de53b
commit
9dc4aa97ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue