from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import random author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'Survey_1' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Gender = models.IntegerField ( choices = [ [1, 'Male'], [2, 'Female'], ] ) Age = models.IntegerField(min=18, max=99) Country = models.TextField ( widget=widgets.Textarea (attrs={'rows': 1, 'cols': 8}) ) Caste = models.IntegerField( choices=[ [1, 'Scheduled Caste'], [2, 'Scheduled Tribe'], [3, 'Other backward castes'], [4, 'General'], [5, 'Other'], [6, 'Prefer not to say'], ] ) Religion = models.IntegerField( choices=[ [1, 'Muslim'], [2, 'Hindu'], [3, 'Sikh'], [4, 'Christian'], [5, 'Buddhist'], [6, 'Parsi'], [7, 'Other'], [8, 'Prefer not say'], ] )