from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Mark Bloxsom' doc = """ This app will serve as the survey portion of the Costly Participation and Preference Expression Experiment """ class Constants(BaseConstants): name_in_url = 'Voter_Participation_Survey' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField() major = models.StringField() gender = models.IntegerField( choices=[ [1, 'Male'], [2, 'Female'], [3, 'Other'], [4, 'Prefer Not To Answer'], ], ) nationality = models.StringField() strategy = models.BooleanField( choices=[ [0, 'Yes'], [1, 'No'], ] ) strategydiscussion = models.LongStringField() version = models.BooleanField( choices=[ [0, 'Version 1'], [1, 'Version 2'], ], ) versionexplain = models.LongStringField()