from otree.api import * c = cu doc = '' class Constants(BaseConstants): name_in_url = 'my_survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): your_id = models.StringField(label='Please write your ID if you participate in Behavioral and Experimental Economics (Fall 2021). Otherwise, write any random number more than 1000.') age = models.IntegerField(label='What is your age?') gender = models.StringField(choices=[['Male', 'Male'], ['Female', 'Female']], label='What is your gender?', widget=widgets.RadioSelect) religion = models.StringField(choices=[['Christianity', 'Christianity'], ['Catholicism', 'Catholicism'], ['Budism', 'Budism'], ['Protestantism', 'Protestantism'], ['Other', 'Other'], ["I'm atheist", "I'm atheist"]], label='What is your religion?', widget=widgets.RadioSelect) risk = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10']], label='How usually do you take risks? (10 - always, 1 - never)', widget=widgets.RadioSelect) cheat = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10']], label='How usually do you cheat at university? (10 - always, 1 - never)', widget=widgets.RadioSelect) gpa = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10']], label='What is your rounded GPA?', widget=widgets.RadioSelect) income = models.StringField(choices=[['<10 000 rubles', '<10 000 rubles'], ['10 000 - 20 000 rubles', '10 000 - 20 000 rubles'], ['20 000 - 40 000 rubles', '20 000 - 40 000 rubles'], ['40 000 - 70 000 rubles', '40 000 - 70 000 rubles'], ['70 000 - 100 000 rubles', '70 000 - 100 000 rubles'], ['>100 000 rubles', '>100 000 rubles']], label='What is your monthly income?', widget=widgets.RadioSelect) class Survey_ID(Page): form_model = 'player' form_fields = ['your_id'] class Survey(Page): form_model = 'player' form_fields = ['age', 'gender', 'religion', 'income', 'gpa', 'risk', 'cheat'] class Instruction(Page): form_model = 'player' page_sequence = [Survey_ID, Survey, Instruction]