From 0f116462f661bceb87b559d39752ba6d7cb745c1 Mon Sep 17 00:00:00 2001 From: kingmo888 <17401091+kingmo888@users.noreply.github.com> Date: Thu, 14 Dec 2023 09:10:05 +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,=20fix=20#12?= 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 0a27095..058baac 100644 --- a/api/models_user.py +++ b/api/models_user.py @@ -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: