from otree.api import * c = cu doc = '' class Constants(BaseConstants): name_in_url = 'Replication' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Q1 = models.IntegerField(choices=[[1, 'Never'], [2, 'Once a year'], [3, 'Once every half-year'], [4, 'Every 3 months'], [5, 'Once a month'], [6, 'Every 2 weeks'], [7, 'Once a week'], [8, 'Daily']], label='About how often do you deal with investment instruments (purchase and sale)?') Q2 = models.IntegerField(choices=[[1, 'I make my own investment decisions based on information which I collect myself'], [2, 'I follow the advice of my financial advisor but I take the final decision'], [3, 'I leave the decisions to my financial advisor but I want to be kept up to date about it'], [4, 'I leave the decision to my financial advisor and I do not want to know all the details about it']], label='Which one of the following statements best describes your investment behavior?') Q3 = models.IntegerField(choices=[[-3, '-3'], [-2, '-2'], [-1, '-1'], [0, '0'], [1, '1'], [2, '2'], [3, '3']], label='Do you think that one can trust most financial advisors or not?', widget=widgets.RadioSelectHorizontal) Q4 = models.IntegerField(choices=[[0, '0'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10']], label='Concerning financial decisions: To what extent are you willing to forgo something in order to benefit from it in the future?', widget=widgets.RadioSelectHorizontal) SA1 = models.LongStringField(label='Would you sell/buy individual stocks? Explain briefly why') SA2 = models.LongStringField(label='Would you invest in gold or other precious metals? Explain briefly why.') class Intro(Page): form_model = 'player' class Survey(Page): form_model = 'player' form_fields = ['Q1', 'Q2', 'Q3', 'Q4'] class SA1(Page): form_model = 'player' form_fields = ['SA1'] class SA2(Page): form_model = 'player' form_fields = ['SA2'] page_sequence = [Intro, Survey, SA1, SA2]