user model meta names
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user