Skip to content

Commit 546790e

Browse files
committed
Add missing file
1 parent b4b4306 commit 546790e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

thebook/webhooks/constants.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)