diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-02-22 13:09:02 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-02-22 13:09:02 +0000 |
| commit | eb67e449dde298a35664c0daea61860ac63a1f58 (patch) | |
| tree | 64bd815e557e0f24f37a1553d4a60eab1c5ef65b /django | |
| parent | 2fc19d8d6f369d4bd1ef8c7175c241a10e24c6f0 (diff) | |
Fixed #12864 -- Corrected handling of new user creation when a multi-database router is in place. Thanks to haris@dubizzle.com for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12488 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/auth/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/auth/models.py b/django/contrib/auth/models.py index fd9301deaa..da8b8a6b25 100644 --- a/django/contrib/auth/models.py +++ b/django/contrib/auth/models.py @@ -110,7 +110,7 @@ class UserManager(models.Manager): user.set_password(password) else: user.set_unusable_password() - user.save(using=self.db) + user.save(using=self._db) return user def create_superuser(self, username, email, password): @@ -118,7 +118,7 @@ class UserManager(models.Manager): u.is_staff = True u.is_active = True u.is_superuser = True - u.save(using=self.db) + u.save(using=self._db) return u def make_random_password(self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789'): |
