コード例 #1
0
ファイル: profile.py プロジェクト: petr-kalinin/SIStema
 class DocumentType(choices.DjangoChoices):
     RUSSIAN_PASSPORT = choices.ChoiceItem(1, 'Российский паспорт')
     BIRTH_CERTIFICATE = choices.ChoiceItem(2, 'Свидетельство о рождении')
     ALIEN_PASSPORT = choices.ChoiceItem(3, 'Заграничный паспорт')
     ANOTHER_COUNTRY_PASSPORT = choices.ChoiceItem(
         4, 'Паспорт другого государства')
     OTHER_DOCUMENT = choices.ChoiceItem(-1, 'Другой')
コード例 #2
0
ファイル: profile.py プロジェクト: petr-kalinin/SIStema
 class TShirtSize(choices.DjangoChoices):
     XS = choices.ChoiceItem(1, 'XS')
     S = choices.ChoiceItem(2, 'S')
     M = choices.ChoiceItem(3, 'M')
     L = choices.ChoiceItem(4, 'L')
     XL = choices.ChoiceItem(5, 'XL')
     XXL = choices.ChoiceItem(6, 'XXL')
コード例 #3
0
ファイル: profile.py プロジェクト: petr-kalinin/SIStema
 class Citizenship(choices.DjangoChoices):
     RUSSIA = choices.ChoiceItem(1, 'Россия')
     KAZAKHSTAN = choices.ChoiceItem(2, 'Казахстан')
     BELARUS = choices.ChoiceItem(3, 'Беларусь')
     TAJIKISTAN = choices.ChoiceItem(4, 'Таджикистан')
     OTHER = choices.ChoiceItem(-1, 'Другое')
コード例 #4
0
ファイル: profile.py プロジェクト: petr-kalinin/SIStema
 class Sex(choices.DjangoChoices):
     FEMALE = choices.ChoiceItem(1, 'женский')
     MALE = choices.ChoiceItem(2, 'мужской')
コード例 #5
0
 class Status(choices.DjangoChoices):
     IN_PROGRESS = choices.ChoiceItem(1)
     REFUSED = choices.ChoiceItem(2)
     FAILED = choices.ChoiceItem(3)
     PASSED = choices.ChoiceItem(4)
コード例 #6
0
 class CheckerResult(choices.DjangoChoices):
     # TODO: no doubling the Checker result from smartq
     OK = choices.ChoiceItem(1)
     WRONG_ANSWER = choices.ChoiceItem(2)
     PRESENTATION_ERROR = choices.ChoiceItem(3)
     CHECK_FAILED = choices.ChoiceItem(4)
コード例 #7
0
 class Status(choices.DjangoChoices):
     NOT_STARTED = choices.ChoiceItem(1)
     STARTED = choices.ChoiceItem(2)
     CORRECTING = choices.ChoiceItem(3)
     FINISHED = choices.ChoiceItem(4)
     CHECK_TOPICS = choices.ChoiceItem(5)