✨(models) add MailDomain status
Add some status to allow to create mailboxes only for an active domain
This commit is contained in:
15
src/backend/mailbox_manager/enums.py
Normal file
15
src/backend/mailbox_manager/enums.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""
|
||||
Application enums declaration
|
||||
"""
|
||||
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
class MailDomainStatusChoices(models.TextChoices):
|
||||
"""Defines the possible statuses in which a mail domain can be."""
|
||||
|
||||
PENDING = "pending", _("Pending")
|
||||
ENABLED = "enabled", _("Enabled")
|
||||
FAILED = "failed", _("Failed")
|
||||
DISABLED = "disabled", _("Disabled")
|
||||
Reference in New Issue
Block a user