From fcd342ed210a36d116bd8d67146549e77427c543 Mon Sep 17 00:00:00 2001 From: baoliang Date: Tue, 26 Jan 2021 15:49:57 +0800 Subject: [PATCH] fix userprofile level bug --- dashboard/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/models.py b/dashboard/models.py index 57b3e32..7a3a2ff 100644 --- a/dashboard/models.py +++ b/dashboard/models.py @@ -193,9 +193,9 @@ class Userprofile(models.Model): return Userprofile.objects.filter(Q(organization__level__level=1) | Q(organization__level__level=9)) def __str__(self): - if self.is_level1: + if self.is_level1(): return '省级管理员%s' % (self.name,) - elif self.is_level2: + elif self.is_level2(): return '市级管理员%s' % (self.name,) return self.name