This commit is contained in:
2026-07-10 09:15:15 +02:00
parent b80f501d5a
commit 9d5ea53b5c
18 changed files with 2122 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
from django.utils.translation import gettext_lazy as _
from utilities.choices import ChoiceSet
class SyncStatusChoices(ChoiceSet):
STATUS_NEVER = "never"
STATUS_QUEUED = "queued"
STATUS_RUNNING = "running"
STATUS_SUCCESS = "success"
STATUS_FAILED = "failed"
CHOICES = [
(STATUS_NEVER, _("Never synced"), "gray"),
(STATUS_QUEUED, _("Queued"), "blue"),
(STATUS_RUNNING, _("Running"), "cyan"),
(STATUS_SUCCESS, _("Success"), "green"),
(STATUS_FAILED, _("Failed"), "red"),
]