небольшие визуальные изменения сайта
This commit is contained in:
1 parent
07f8b967a8
commit
7c50b3cd02
5 files changed
+25
-11
No files matched your search
@@ -36,6 +36,13 @@ class User(AbstractBaseUser):
|
||||
def __str__(self):
|
||||
return self.login
|
||||
|
||||
def readable_access_level(self):
|
||||
choices = UserAccessLevel.choices
|
||||
for c in choices:
|
||||
if c[0] == self.access_level:
|
||||
return c[1]
|
||||
return 'неизвестно'
|
||||
|
||||
class Meta:
|
||||
default_permissions = ()
|
||||
|
||||
|
||||
Reference in new issue
Block a user