from django.template.defaulttags import register
from django.utils.safestring import mark_safe
from ._builtin import Page
@register.simple_tag()
def blue():
return mark_safe('BLUE')
@register.simple_tag()
def green():
return mark_safe('GREEN')
class Questions(Page):
form_model = 'player'
form_fields = [
'probability', 'pairing', 'strategy_1', 'strategy_2', 'strategy_3',
'concern_up', 'concern_meet', 'concern_down',
'appropriate_1', 'appropriate_2', 'uncomfortable_1', 'uncomfortable_2',
'honest', 'understand', 'gender', 'age', 'other',
]
class Results(Page):
pass
page_sequence = [
Questions,
Results,
]