From 1b2f45dee9c78189190f76e055234a777cef2cfa Mon Sep 17 00:00:00 2001 From: kingmo888 <17401091+kingmo888@users.noreply.github.com> Date: Thu, 14 Dec 2023 09:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E8=B0=83=E6=95=B4=E4=B8=BA?= =?UTF-8?q?=E5=8F=AA=E6=9C=89=E7=AE=A1=E7=90=86=E5=91=98=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/models_user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/models_user.py b/api/models_user.py index 6fcc7ce..cb4a881 100644 --- a/api/models_user.py +++ b/api/models_user.py @@ -75,8 +75,8 @@ class UserProfile(AbstractBaseUser, PermissionsMixin): def is_staff(self): "Is the user a member of staff?" # Simplest possible answer: All admins are staff - #return self.is_admin - return self.is_active + return self.is_admin + #return self.is_active class Meta: verbose_name = "用户"