удалил номер при регистрации

This commit is contained in:
Mike0001-droid 2024-06-04 15:43:16 +05:00
parent 67b1d35ccc
commit 664b623557
1 changed files with 2 additions and 3 deletions

View File

@ -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)