class Demo1Field(choices.ConstChoices): A = 1, 'VER' B = 2, 'STE' c = 3, 'SSS' D = 5 _E = 6, 'ES' F = 8 G = choices.Item(10)
class DirectionChoices(VerticalChoices): E = choices.Item('E', 'east') W = choices.Item('W', 'west')
class VerticalChoices(choices.ConstChoices): S = choices.Item('S', 'south') N = choices.Item('N', 'north')
class OffsetChoices(choices.ConstChoices): up = choices.Item((0, -1), 'Up') down = choices.Item((0, 1), 'Down') left = choices.Item((-1, 0), 'Left') right = choices.Item((0, 1), 'Right')
class GenderChoices(choices.ConstChoices): male = choices.Item('male', 'Male') female = choices.Item('female', 'Female') unknown = choices.Item('unknown', 'Unknown')
class OrderTestChoices(VerticalChoices): N = choices.Item('n', 'North', order=-1)
class GenderChoices(choices.ConstChoices): MALE = choices.Item(1, 'Male') FEMALE = choices.Item(2, 'Female') UNKNOWN = choices.Item(3, 'Unknown')