удалил номер при регистрации
This commit is contained in:
parent
67b1d35ccc
commit
664b623557
|
|
@ -7,7 +7,7 @@ from django.contrib.auth.models import (
|
|||
|
||||
|
||||
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
|
||||
birth and password.
|
||||
|
|
@ -16,8 +16,7 @@ class MyUserManager(BaseUserManager):
|
|||
raise ValueError('Users must have an email address')
|
||||
|
||||
user = self.model(
|
||||
email=self.normalize_email(email),
|
||||
phone=phone
|
||||
email=self.normalize_email(email),
|
||||
)
|
||||
|
||||
user.set_password(password)
|
||||
|
|
|
|||
Loading…
Reference in New Issue