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

This commit is contained in:
VladislavOstapov committed 2024-01-25 18:40:08 +03:00
1 parent 07f8b967a8
commit 7c50b3cd02
5 files changed
+25 -11

No files matched your search

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