From: Guillaume Pellerin Date: Wed, 3 Feb 2016 18:27:31 +0000 (+0100) Subject: add more help text and fields X-Git-Tag: 1.1~153 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e30d67449e0ffda6700bd7276f5c09a8a2cbb79e;p=teleforma.git add more help text and fields --- diff --git a/teleforma/forms.py b/teleforma/forms.py index 1ea97786..511330db 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -71,6 +71,5 @@ class StudentInline(InlineFormSet): model = Student can_delete = False - fields = ['iej', 'period', 'trainings', 'procedure', 'written_speciality', 'oral_speciality', - 'oral_1', ] - + fields = ['level', 'iej', 'period', 'platform_only', 'trainings', 'procedure', + 'written_speciality', 'oral_speciality', 'oral_1', 'oral_2'] diff --git a/teleforma/models/crfpa.py b/teleforma/models/crfpa.py index 36da0f25..cee3f2dc 100644 --- a/teleforma/models/crfpa.py +++ b/teleforma/models/crfpa.py @@ -131,7 +131,7 @@ class Student(Model): blank=True, null=True) period = models.ForeignKey('Period', related_name='student', verbose_name=_('period'), blank=True, null=True, on_delete=models.SET_NULL) - platform_only = models.BooleanField(_('platform only')) + platform_only = models.BooleanField(_('platform only'), help_text="") application_fees = models.BooleanField(_('application fees'), blank=True) default_application_fees = 40 subscription_fees = models.FloatField(_('subscription fees'), help_text='€', blank=True, null=True) @@ -195,7 +195,7 @@ class Profile(models.Model): init_password = models.BooleanField(_('Password initialized')) wifi_login = models.CharField(_('WiFi login'), max_length=255, blank=True) wifi_pass = models.CharField(_('WiFi pass'), max_length=255, blank=True) - birthday = models.DateField(_('birthday'), blank=True, null=True) + birthday = models.DateField(_('birthday'), blank=True, null=True, help_text="jj/mm/aaaa") class Meta(MetaCore): db_table = app_label + '_' + 'profiles'