class SciezkiKopernikaForm(ContactForm):
form_tag = 'sciezki-kopernika'
form_title = u'Formularz zgłoszeniowy na warsztaty'
+ disabled = True
nazwisko = forms.CharField(label=u'Imię i nazwisko uczestnika/uczestniczki', max_length=128)
rok_urodzenia = forms.IntegerField(label=u'Rok urodzenia')
'comment': mark_safe(markdown.convert(cls.ANSWER_COMMENTS[i-1][chosen_idx])),
'answers': [(text, a_score == score, a_score == 2) for a_score, text in choices],
}
- question_count = len(fields) - 1
+ question_count = len(fields) - 2
questions = [question_data(i) for i in xrange(1, question_count + 1)]
points = sum(question['score'] for question in questions)
return {'questions': questions, 'points': points/2., 'total': question_count}