from otree.api import * c = cu doc = 'ダイエットに関するアンケート' class C(BaseConstants): NAME_IN_URL = 'Questionnaire' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): diet_unsuccess = models.IntegerField(blank=True, choices=[[1, 'はい'], [0, 'いいえ']], label='あなたはダイエットに失敗したことがありますか?', widget=widgets.RadioSelectHorizontal) class Introduction(Page): form_model = 'player' class Diet(Page): form_model = 'player' form_fields = ['diet_unsuccess'] class TimePreference(Page): form_model = 'player' class Demographic(Page): form_model = 'player' class Thankyou(Page): form_model = 'player' page_sequence = [Introduction, Diet, TimePreference, Demographic, Thankyou]