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 = 'survey_2' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): collegemajor = models.StringField() econcourses = models.StringField( choices=['0', '1', '2', '3', '4', '5+', 'Prefer Not to Answer'], doc="""Number of Econ Courses""" ) gametheory = models.StringField( choices=['Yes', 'No', 'Prefer Not to Answer'], doc="""Game theory course""" ) polisci = models.StringField( choices=['0', '1', '2', '3', '4', '5+', 'Prefer Not to Answer'], doc="""Number of PoliSci Courses""" ) experiments = models.StringField( choices=['0', '1', '2', '3', '4', '5+', 'Prefer Not to Answer'], doc="""Number of Experiments""" ) gender = models.StringField( choices=['Male', 'Female', 'Other/Non-Binary', 'Prefer Not to Answer'], doc="""Gender""" ) race = models.StringField( choices=['White', 'Black or African American', 'Latino or Hispanic', 'American Indian or Alaskan Native', 'Asian', 'Native Hawaiian or other Pacific Islander', 'More than one of the above', 'None of the above', 'Prefer Not to Answer'], doc="""Race""" )