X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/c756f35d83b6e4a323931ab5eae1ccde4db82338..e98aaae9c8ee2024326a46a641d7a6beb207fba4:/edumed/contact_forms.py diff --git a/edumed/contact_forms.py b/edumed/contact_forms.py index 6a53fad..b42b433 100644 --- a/edumed/contact_forms.py +++ b/edumed/contact_forms.py @@ -650,6 +650,7 @@ class CybernauciAnkietaForm(ContactForm): 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') @@ -1707,7 +1708,7 @@ class SciezkiKopernikaTestForm(ContactForm): '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}