18 lines
533 B
Python
18 lines
533 B
Python
from django.db.models import TextChoices
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
class CampaignStatus(TextChoices):
|
|
DRAFT = "draft", _("Draft")
|
|
SCHEDULED = "scheduled", _("Scheduled")
|
|
SENDING = "sending", _("Sending")
|
|
SENT = "sent", _("Sent")
|
|
CANCELLED = "cancelled", _("Cancelled")
|
|
|
|
|
|
class RecipientStatus(TextChoices):
|
|
PENDING = "pending", _("Pending")
|
|
SENT = "sent", _("Sent")
|
|
FAILED = "failed", _("Failed")
|
|
OPENED = "opened", _("Opened")
|
|
CLICKED = "clicked", _("Clicked")
|