from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants #from captcha.fields import ReCaptchaField class Consent(Page): def vars_for_template(self): participant = self.participant showupfee = self.session.config['participation_fee'] max_bonus = self.session.config['max_bonus'] return {'showupfee': showupfee, 'max_bonus': max_bonus, 'redemption_code': participant.code } class Captcha(Page): _allow_custom_attributes = True form_model = 'player' form_fields = [] # captcha does not get in here #def get_form(self, data=None, files=None, **kwargs): # frm = super().get_form(data, files, **kwargs) # frm.fields['captcha'] = ReCaptchaField() # return frm page_sequence = [ Consent #Captcha ]