def confirm_page(self):
        self.preview = True

        for f in self.fields:
            self.fields[f].widget.attrs['readonly'] = True

        str = '<table><tr><th>Omschrijving</th><th>Bedrag</th></tr>'
        price = self.event.price
        if price != 0:
            str += '<tr><td>Standaard:</td><td>\u20AC {:.2f}</td></tr>'.format(float(price) / 100.)
        for question in self.event.eventquestion_set.order_by('order'):
            if question.question_type == 'CHOICE':
                option = self.cleaned_data[question.form_id()]
                if option is not None:
                    if option.price != 0:
                        price += option.price
                        str += '<tr><td>{}</td><td>\u20AC {:.2f}</td></tr>'.format(option.name, float(option.price) / 100.)
            if question.question_type == 'BOOL':
                if self.cleaned_data[question.form_id()]:
                    option = list(question.options.all()[:1])
                    if option:
                        option = option[0]
                        if option.price != 0:
                            price += option.price
                            str += '<tr><td>{}</td><td>\u20AC {:.2f}</td></tr>'.format(option.name, float(option.price) / 100.)
        str += '<tr><td><strong>Totaal:</strong></td><td><strong>\u20AC {:.2f}</strong></td></tr>'.format(float(price) / 100.)
        str += '</table>'
        self.price = price
        self.price_description = str
dataset/ETHPy150Open jonge-democraten/dyonisos/subscribe/forms.py/SubscribeForm.confirm_page/original