from .models import * class Introduction(Page): form_model = 'player' class Offer(Page): form_model = 'player' form_fields = ['send'] class ResultsWaitPage(WaitPage): after_all_players_arrive = 'set_payoffs' class Results(Page): form_model = 'player' def vars_for_template(self): group = self.group return dict(offer=Constants.endowment - group.send_group) page_sequence = [Introduction, Offer, ResultsWaitPage, Results]