We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4b4306 commit 546790eCopy full SHA for 546790e
thebook/webhooks/constants.py
@@ -0,0 +1,18 @@
1
+from django.utils.functional import classproperty
2
+from django.utils.translation import gettext as _
3
+
4
5
+class ProcessingStatus:
6
+ RECEIVED = 1
7
+ PROCESSED = 2
8
+ UNPARSABLE = 3
9
+ DUPLICATED = 4
10
11
+ @classproperty
12
+ def choices(cls):
13
+ return (
14
+ (cls.RECEIVED, _("Received")),
15
+ (cls.PROCESSED, _("Processed")),
16
+ (cls.UNPARSABLE, _("Unparsable")),
17
+ (cls.DUPLICATED, _("Duplicated")),
18
+ )
0 commit comments