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, 'Другой')
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')
class Citizenship(choices.DjangoChoices): RUSSIA = choices.ChoiceItem(1, 'Россия') KAZAKHSTAN = choices.ChoiceItem(2, 'Казахстан') BELARUS = choices.ChoiceItem(3, 'Беларусь') TAJIKISTAN = choices.ChoiceItem(4, 'Таджикистан') OTHER = choices.ChoiceItem(-1, 'Другое')
class Sex(choices.DjangoChoices): FEMALE = choices.ChoiceItem(1, 'женский') MALE = choices.ChoiceItem(2, 'мужской')
class Status(choices.DjangoChoices): IN_PROGRESS = choices.ChoiceItem(1) REFUSED = choices.ChoiceItem(2) FAILED = choices.ChoiceItem(3) PASSED = choices.ChoiceItem(4)
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)
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)