from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import csv, json, random, math import itertools from django.db import models as djmodels author = 'Philipp Chapkovski, UZH' doc = """ Social Value Orientation by R.Murphy, K.Ackermann, M.Hangraaf: Murphy, R. O., Ackermann, K. A., & Handgraaf, M. J. J. (2011). Measuring Social Value Orientation. Judgment and Decision Making, 6(8), 771-781, see more detailed information: http://vlab.ethz.ch/styled-2/index.html """ class Constants(BaseConstants): name_in_url = 'questionnaire' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField() gender = models.StringField(choices=['M', 'F'], widget=widgets.RadioSelectHorizontal) level_education = models.StringField(choices=['Secondary Education', 'Bachelor', 'Master', 'PhD', 'Other'], widget=widgets.RadioSelect) tipo_studio = models.StringField() student = models.StringField(choices=['Yes', 'No'], widget=widgets.RadioSelectHorizontal) employee = models.StringField(choices=['Yes', 'No'], widget=widgets.RadioSelectHorizontal) experience = models.StringField(choices=['Nothing like this scenario', 'Somewhat like this', 'Exactly this scenario'], widget=widgets.RadioSelect) pass