from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class MyPage(Page): form_model = 'player' form_fields = ['consent'] def app_after_this_page(self, upcoming_apps): if self.player.consent == 0: return upcoming_apps[-1] pass class ResultsWaitPage(WaitPage): pass class Results(Page): pass page_sequence = [ MyPage, ]