|
|
|
@ -78,7 +78,8 @@ class CustomUserManager(BaseUserManager): |
|
|
|
|
|
|
|
|
|
|
|
email = self.normalize_email(email) |
|
|
|
email = self.normalize_email(email) |
|
|
|
|
|
|
|
|
|
|
|
user = self.model(email=email, is_staff=is_staff, is_active=is_active, first_name=first_name, id=self.last().id +1, |
|
|
|
user = self.model(email=email, is_staff=is_staff, is_active=is_active, first_name=first_name, |
|
|
|
|
|
|
|
id=self.last().id +1 if self.last() else 0, |
|
|
|
is_superuser=is_superuser, date_joined=date_joined, last_login=last_login, **extra_fields) |
|
|
|
is_superuser=is_superuser, date_joined=date_joined, last_login=last_login, **extra_fields) |
|
|
|
|
|
|
|
|
|
|
|
if not password: |
|
|
|
if not password: |
|
|
|
|