X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/c756f35d83b6e4a323931ab5eae1ccde4db82338..5bd425286aab85aa853b3c1ff4e5e730795b299e:/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}