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 = 'feedback' players_per_group = None num_rounds = 1 education_choices = ['Freshman', 'Sophomore', 'Junior', 'Senior', 'Grad student'] class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): # demographics q_education = models.CharField(initial=None, choices=Constants.education_choices, verbose_name='Which year of university are you in?', widget=widgets.RadioSelect()) q_age = models.PositiveIntegerField(verbose_name='What is your age?', choices=range(13, 100), initial=None) q_gender = models.CharField(initial=None, choices=['Male', 'Female'], verbose_name='What is your gender?', widget=widgets.RadioSelect()) q_major = models.CharField(initial=None, verbose_name='What is your major?') q_advice= models.TextField(initial=None, verbose_name='If you could give advice to a future participant in the experiment, what advice would you give? We may provide this advice to future participants.')