удалил номер при регистрации
This commit is contained in:
parent
67b1d35ccc
commit
664b623557
|
|
@ -7,7 +7,7 @@ from django.contrib.auth.models import (
|
||||||
|
|
||||||
|
|
||||||
class MyUserManager(BaseUserManager):
|
class MyUserManager(BaseUserManager):
|
||||||
def create_user(self, email, phone, password=None):
|
def create_user(self, email, password=None):
|
||||||
"""
|
"""
|
||||||
Creates and saves a User with the given email, date of
|
Creates and saves a User with the given email, date of
|
||||||
birth and password.
|
birth and password.
|
||||||
|
|
@ -16,8 +16,7 @@ class MyUserManager(BaseUserManager):
|
||||||
raise ValueError('Users must have an email address')
|
raise ValueError('Users must have an email address')
|
||||||
|
|
||||||
user = self.model(
|
user = self.model(
|
||||||
email=self.normalize_email(email),
|
email=self.normalize_email(email),
|
||||||
phone=phone
|
|
||||||
)
|
)
|
||||||
|
|
||||||
user.set_password(password)
|
user.set_password(password)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue