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