From ad06e05ae1b5915199d7575ffc4099ca93872e7f Mon Sep 17 00:00:00 2001 From: Alex <101930045+lexxik753@users.noreply.github.com> Date: Mon, 9 Oct 2023 11:26:57 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D1=83=D1=81=D0=B8=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D0=B0=D0=BA=D0=BA=D0=B0=D1=83=D0=BD?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=20=D0=B2=20=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD?= =?UTF-8?q?=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- accounts/apps.py | 1 + accounts/models.py | 8 ++++++-- navigation/models.py | 3 --- 3 files changed, 7 insertions(+), 5 deletions(-) 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