diff --git a/backend/account/models.py b/backend/account/models.py index 90cd145..9bc345d 100644 --- a/backend/account/models.py +++ b/backend/account/models.py @@ -1,4 +1,4 @@ -from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin +from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin, Group from django.db import models from django.utils.translation import gettext_lazy as _ import random @@ -55,7 +55,9 @@ class User(AbstractBaseUser, PermissionsMixin): def user_permissions(self): return None - + class Meta: + verbose_name = 'کاربر' + verbose_name_plural = 'کاربران' def _hash_otp(self, otp): return hashlib.sha256(otp.encode()).hexdigest()