from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) doc = '' class Constants(BaseConstants): name_in_url = 'Pretest_survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField(label='What is your age?', max=125, min=10) gender = models.StringField(choices=[['Male', 'Male'], ['Female', 'Female'], ['Other', 'Other']], label='What is your gender?', widget=widgets.RadioSelect) profession = models.StringField(choices=[['Employed full-time', 'Employed full-time'], ['Employed part-time', 'Employed part-time'], ['Student', 'Student'], ['Unemployed looking for work', 'Unemployed looking for work'], ['Unemployed not looking for work', 'Unemployed not looking for work'], ['Retired', 'Retired'], ['Self-employed', 'Self-employed'], ['Unable to work', 'Unable to work']], label='Please indicate your current professional situation.') education = models.StringField(choices=[['Less than highschool', 'Less than highschool'], ['Highschool graduate', 'Highschool graduate'], ['Some college', 'Some college'], ["Bachelor's degree", "Bachelor's degree"], ["Master's degree", "Master's degree"], ['Professional degree', 'Professional degree'], ['Doctorate', 'Doctorate']], label='What is your highest level of education?') income = models.StringField(choices=[['Less than €1,000', 'Less than €1,000'], ['€1,000 - €1,999', '€1,000 - €1,999'], ['€2,000 - €2,999', '€2,000 - €2,999'], ['€3,000 - €3,999', '€3,000 - €3,999'], ['€4,000 - €4,999', '€4,000 - €4,999'], ['More than €5,000', 'More than €5,000']], label='What is your monthly net income?') Extraversion_1 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... is outgoing, sociable', widget=widgets.RadioSelect) Extraversion_2 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... tends to be quiet', widget=widgets.RadioSelect) Agreeableness_1 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... is considerate and kind to almost everyone', widget=widgets.RadioSelect) Agreeableness_2 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... starts quarrels with others', widget=widgets.RadioSelect) Conscientiousness_1 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... makes plans and follows through with them', widget=widgets.RadioSelect) Conscientiousness_2 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... tends to be disorganized', widget=widgets.RadioSelect) Neuroticism_1 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... gets nervous easily', widget=widgets.RadioSelect) Neuroticism_2 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... is calm in tense situations', widget=widgets.RadioSelect) Openness_1 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... has an active imagination', widget=widgets.RadioSelect) Openness_2 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... prefers work that is routine', widget=widgets.RadioSelect) postal_code = models.IntegerField(label='What is your postal code?') siblings_1 = models.StringField(choices=[['0', 'none'], ['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5 or more', '5 or more']], label='How many siblings do you have?') siblings_order = models.StringField(choices=[['I am the oldest.', 'I am the oldest.'], ['I am in the middle.', 'I am in the middle.'], ['I am the youngest.', 'I am the youngest.'], ['I am the only child.', 'I am the only child.']], label='What is the birth order among your siblings?') Extraversion_3 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... is talkative', widget=widgets.RadioSelect) Extraversion_4 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... is reserved', widget=widgets.RadioSelect) Agreeableness_4 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... tends to find fault with others', widget=widgets.RadioSelect) Conscientiousness_3 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... does a thorough job', widget=widgets.RadioSelect) Conscientiousness_4 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... can be somewhat careless', widget=widgets.RadioSelect) Neuroticism_3 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... can be tense', widget=widgets.RadioSelect) Neuroticism_4 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... is emotionally stable, not easily upset', widget=widgets.RadioSelect) Openness_3 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... is curious about many different things', widget=widgets.RadioSelect) Openness_4 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... has few artistic interests', widget=widgets.RadioSelect) Agreeableness_3 = models.StringField(choices=[['Strongly disagree', 'Strongly disagree'], ['Disagree', 'Disagree'], ['Neutral', 'Neutral'], ['Agree', 'Agree'], ['Strongly agree', 'Strongly agree']], label='... is sympathetic', widget=widgets.RadioSelect) relationship_status = models.StringField(choices=[['Single', 'Single'], ['In a relationship', 'In a relationship'], ['Married', 'Married'], ['Engaged', 'Engaged'], ['Divorced', 'Divorced'], ['Other', 'Other']], label='Which of the following best describes your relationship status?')