Exemple #1
0
class Category(Choices):
    normal = Choice("Pizza Normal")
    premium = Choice("Pizza Premium")
    sweet = Choice("Pizza Doce")
class GroupState(Choices):
    unknown = Choice('Unknown: investigate')
    known = Choice('Known')
    old_format = Choice('Old format: should be migrated')
    format_one = Choice('New format')
Exemple #3
0
class Gender(Choices):
    male = Choice("male")
    female = Choice("female")
    not_specified = Choice("not specified")
Exemple #4
0
class Gender(Choices):
    male = Choice("male").extra(label="Male")
    female = Choice("female").extra(label="Female")
    not_specified = Choice("not specified").extra(label="Not specified")
Exemple #5
0
class MenuType(Choices):
    Side = Choice("side")
    MainCourse = Choice("maincourse")
    Appetizer = Choice("appetizer")
    Dessert = Choice('dessert')
    NotSpecified = Choice('not specified')
Exemple #6
0
class AnimalChoice(Choices):
    bovino = Choice("Bovino")
    caprino = Choice("Caprino")
    suino = Choice('Suino')
Exemple #7
0
class ModelsTypesChoices(Choices):
    motorcycle = Choice('motorcycle').extra(description='moto')
    car = Choice('car').extra(description='car')