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

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.
@ -17,7 +17,6 @@ class MyUserManager(BaseUserManager):
user = self.model(
email=self.normalize_email(email),
phone=phone
)
user.set_password(password)