20 lines
No EOL
672 B
Python
20 lines
No EOL
672 B
Python
from django.db.models import IntegerChoices
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
class StateChoices(IntegerChoices):
|
|
CREATED = 1 , _('created')
|
|
IPG_PENDING = 2 , _('ipg pending')
|
|
IPG_SUCCESS = 3 , _('ipg success')
|
|
|
|
WALLET_SUBMIT_PENDING = 11 , _('wallet submit pending')
|
|
WALLET_SUBMIT_SUCCESS = 12 , _('wallet submit success')
|
|
|
|
FAILED = 18 , _('failed')
|
|
EXPECTED_FAILURE = 19 , _('expected failure') # no exact data available but guessed to be failed
|
|
SUCCESS = 20 , _('success')
|
|
|
|
|
|
class TypeChoices(IntegerChoices):
|
|
USER = 1 , _('user')
|
|
APPLICATION = 2 , _('application') |