]> git.parisson.com Git - teleforma.git/commitdiff
add more help text and fields
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 3 Feb 2016 18:27:31 +0000 (19:27 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 3 Feb 2016 18:27:31 +0000 (19:27 +0100)
teleforma/forms.py
teleforma/models/crfpa.py

index 1ea97786b0aabfad94db80800aae87e987d7f402..511330db4ecb64b56d00707ea7915d567a5e3e11 100644 (file)
@@ -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']
index 36da0f25b1cb6d58a145d82a7f807bd51e6c2894..cee3f2dca5e200c416a1e134287b96c2adaaf140 100644 (file)
@@ -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'