from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'Demographics' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): income = models.IntegerField(label="What is your total gross household income per year (in US-Dollar)? - optional", blank=True) age = models.IntegerField(label="How old are you? (in years)") highest_ed = models.StringField(label="Please indicate your highest education", widget=widgets.RadioSelect, choices= ['Highschool without graduation', 'Highschool Diploma', 'Community College Degree', 'Bachelor', 'Master', 'Doctorate','Prefer not to answer']) gender = models.StringField(label="To which gender do you most identify?", widget=widgets.RadioSelect, choices= ['Female', 'Male', 'Transgender Female', 'Transgender Male', 'Gender Variant/Non-Conforming','Other', 'Prefer not to answer'])