from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Armando Holzknecht' doc = """ Demographics """ # ******************************************************************************************************************** # # *** CLASS CONSTANTS *** # # ******************************************************************************************************************** # class Constants(BaseConstants): name_in_url = 'Demographics' players_per_group = None num_rounds = 1 # ******************************************************************************************************************** # # *** CLASS SUBSESSION *** # # ******************************************************************************************************************** # class Subsession(BaseSubsession): pass # ******************************************************************************************************************** # # *** CLASS GROUP *** # # ******************************************************************************************************************** # class Group(BaseGroup): pass # ******************************************************************************************************************** # # *** CLASS PLAYER *** # # ******************************************************************************************************************** # class Player(BasePlayer): age = models.FloatField() gender = models.StringField() religion = models.StringField() school_type = models.StringField() school_level = models.IntegerField() math_skill = models.IntegerField() german_skill = models.IntegerField() education_mother = models.IntegerField() education_father = models.IntegerField()