Modellar tayyor
This commit is contained in:
@@ -1 +1,2 @@
|
||||
from .user import * # noqa
|
||||
from .notification_type import * # noqa
|
||||
|
||||
11
core/apps/accounts/choices/notification_type.py
Normal file
11
core/apps/accounts/choices/notification_type.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
class NotificationType(models.TextChoices):
|
||||
"""
|
||||
Notification Types
|
||||
"""
|
||||
|
||||
SYSTEM = "System", _("System")
|
||||
ANOTHER = "Another", _("Another")
|
||||
@@ -10,3 +10,10 @@ class RoleChoice(models.TextChoices):
|
||||
SUPERUSER = "superuser", _("Superuser")
|
||||
ADMIN = "admin", _("Admin")
|
||||
USER = "user", _("User")
|
||||
|
||||
class AccountType(models.TextChoices):
|
||||
"""
|
||||
User Account Type
|
||||
"""
|
||||
PERSONAL = "personal", _("Personal")
|
||||
BUSINESS = "business", _("Business")
|
||||
|
||||
Reference in New Issue
Block a user