user model meta names

This commit is contained in:
Parsa Nazer
2025-01-30 02:17:38 +03:30
parent 4414177a0e
commit 166ee7c91f
+4 -2
View File
@@ -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.db import models
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
import random import random
@@ -55,7 +55,9 @@ class User(AbstractBaseUser, PermissionsMixin):
def user_permissions(self): def user_permissions(self):
return None return None
class Meta:
verbose_name = 'کاربر'
verbose_name_plural = 'کاربران'
def _hash_otp(self, otp): def _hash_otp(self, otp):
return hashlib.sha256(otp.encode()).hexdigest() return hashlib.sha256(otp.encode()).hexdigest()