добавил is_stuff

This commit is contained in:
Mike0001-droid 2024-06-04 16:12:04 +05:00
parent 8b7e02901a
commit 379c205fd4
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ class MyUser(AbstractBaseUser, PermissionsMixin):
first_name = models.CharField('Имя', max_length=150, blank=True)
last_name = models.CharField('Фамилия', max_length=150, blank=True)
phone = models.CharField('Телефон', max_length=15, blank=True, null=True, unique=True)
is_staff = models.BooleanField('Статус персонала', help_text='Отметьте, если пользователь может входить в '
'административную часть сайта.', default=False)
date_joined = models.DateTimeField('Дата регистрации', default=timezone.now)
number = models.CharField('Номер телефона', max_length=20, null=True)
objects = MyUserManager()