diff --git a/accounts/apps.py b/accounts/apps.py index 3e3c76595..8813d505f 100644 --- a/accounts/apps.py +++ b/accounts/apps.py @@ -4,3 +4,4 @@ from django.apps import AppConfig class AccountsConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'accounts' + verbose_name='Аккаунты' \ No newline at end of file diff --git a/accounts/models.py b/accounts/models.py index f15983ce2..f2cce8608 100644 --- a/accounts/models.py +++ b/accounts/models.py @@ -51,7 +51,7 @@ class UserManager(BaseUserManager): class User(AbstractBaseUser, PermissionsMixin): - username = models.CharField(db_index=True, max_length=255, unique=True) + username = models.CharField(db_index=True, max_length=255, unique=True, verbose_name='Имя пользователя') is_active = models.BooleanField(default=True) is_staff = models.BooleanField(default=False) created_at = models.DateTimeField(auto_now_add=True) @@ -65,4 +65,8 @@ class User(AbstractBaseUser, PermissionsMixin): return str(self.username) def fio(self): - return DictEmployee.objects.using('user_directory').get(login=self.username).fio \ No newline at end of file + return DictEmployee.objects.using('user_directory').get(login=self.username).fio + + class Meta: + verbose_name='Пользователи' + verbose_name_plural='Пользователи' \ No newline at end of file diff --git a/navigation/models.py b/navigation/models.py index 63a27ee8d..aad20320a 100644 --- a/navigation/models.py +++ b/navigation/models.py @@ -89,6 +89,3 @@ class Carousels(models.Model): def __str__(self): return str(self.title) - - - \ No newline at end of file