небольшие визуальные изменения сайта

This commit is contained in:
2024-01-25 18:40:08 +03:00
parent 07f8b967a8
commit 7c50b3cd02
5 changed files with 25 additions and 11 deletions

View File

@@ -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 = ()