后台admin调整为只有管理员可以登录, fix #12

This commit is contained in:
kingmo888 2023-12-14 09:10:05 +08:00
parent 44a896896d
commit 0f116462f6

View File

@ -74,7 +74,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
@property
def is_staff(self):
"Is the user a member of staff?"
# Simplest possible answer: All admins are staff
# Simplest possible answer: All admins are staff
return self.is_admin
class Meta: