from ._builtin import Page, WaitPage from .models import Constants from operator import attrgetter from random import randint, shuffle import datetime import math class PostSurvey(Page): form_model = 'player' form_fields = ['ppt_post1', 'ppt_post2', 'ppt_post3', 'ppt_post4', 'ppt_post5', 'pot_post1', 'pot_post2', 'pot_post3', 'pot_post4', 'pot_post5', 'pot_post6'] shuffle(form_fields) class Intention(Page): form_model = 'player' form_fields = ['intention1', 'intention2', 'intention3'] shuffle(form_fields) page_sequence = [ PostSurvey, Intention ]