from .models import * class Introduction(Page): form_model = 'player' class Contribute(Page): form_model = 'player' form_fields = ['contribution'] class ResultsWaitPage(WaitPage): after_all_players_arrive = 'set_payoffs' body_text = 'Waiting for other participants to contribute.' class Results(Page): form_model = 'player' def vars_for_template(self): group = self.group return dict(total_earnings=group.total_contribution * Constants.multiplier) page_sequence = [Introduction, Contribute, ResultsWaitPage, Results]