from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'demographics' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 GENDER = ('Male', 'Female', 'Other') class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField(label='What is your age:', max=125) gender = models.StringField(choices=[['Male', 'Male'], ['Female', 'Female'], ['Other', 'Other']], label='What is your gender:', widget=widgets.RadioSelect) email = models.StringField(label='What is your email:') class Demographics(Page): form_model = 'player' form_fields = ['email', 'age', 'gender'] page_sequence = [Demographics]