from localflavor.generic.models import IBANField from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'my_survey2' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): forename = models.StringField(label="Forename") surname = models.StringField(label="Surname") final_outcome = models.CurrencyField(min=c(0), max=c(9), label="Final additional payment for participation") iban = IBANField(blank=True) email = models.StringField(label="If you would like to receive payment via PayPal, please provide your PayPal " "e-mail address", blank=True)