From d3fb477fbb3e2604a8448210dc8c4c3c8f4db163 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 27 Oct 2016 19:14:37 +0200 Subject: [PATCH] update help texts --- teleforma/forms.py | 2 +- teleforma/models/crfpa.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/teleforma/forms.py b/teleforma/forms.py index 3d529af3..ee5e611f 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -64,4 +64,4 @@ class StudentInline(InlineFormSet): model = Student can_delete = False fields = ['level', 'iej', 'period', 'training', 'platform_only', 'procedure', - 'written_speciality', 'oral_speciality', 'oral_1', 'oral_2', 'promo_code'] + 'written_speciality', 'oral_1', 'promo_code'] diff --git a/teleforma/models/crfpa.py b/teleforma/models/crfpa.py index e1af036c..454c5981 100644 --- a/teleforma/models/crfpa.py +++ b/teleforma/models/crfpa.py @@ -123,12 +123,15 @@ class Student(Model): written_speciality = models.ForeignKey('Course', related_name="written_speciality_students", verbose_name=_('written speciality'), help_text="Matière juridique de spécialité", blank=True, null=True, limit_choices_to={'written_speciality': True}) + written_speciality = models.ForeignKey('Course', related_name="written_speciality_2students", + verbose_name=_('written speciality'), help_text="Matière juridique de spécialité", + blank=True, null=True, limit_choices_to={'written_speciality': True}) oral_speciality = models.ForeignKey('Course', related_name="oral_speciality_students", verbose_name=_('oral speciality'), help_text="Matière d’oral de spécialité (matière incluse dans la formation approfondie, en option pour toutes les autres formations)", blank=True, null=True, limit_choices_to={'oral_speciality': True}) - oral_1 = models.ForeignKey('Course', related_name="oral_1_students", verbose_name=_('oral 1 (option)'), - help_text="Matière d’oral technique 1 (en option)", + oral_1 = models.ForeignKey('Course', related_name="oral_1_students", verbose_name=_('oral de langue (option)'), + help_text="Matière d’oral de langue (en option)", blank=True, null=True, limit_choices_to={'oral_1': True}) oral_2 = models.ForeignKey('Course', related_name="oral_2_students", verbose_name=_('oral 2 (option)'), help_text="Matière d’oral technique 2 (en option)", -- 2.39.5