добавил is_stuff
This commit is contained in:
parent
8b7e02901a
commit
379c205fd4
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue