]> git.parisson.com Git - teleforma.git/commitdiff
add more fields
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sat, 30 Jan 2016 08:13:21 +0000 (09:13 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sat, 30 Jan 2016 08:13:21 +0000 (09:13 +0100)
teleforma/forms.py
teleforma/models/crfpa.py
teleforma/views/core.py

index c434d503edae30f8a07e5871c7a793b6bb027524..98a66abfaddec8c1ff6f8513040fddc4ef526129 100644 (file)
@@ -63,5 +63,5 @@ class StudentInline(InlineFormSet):
 
     model = Student
     can_delete = False
-    fields = ['iej', 'period',]
-
+    fields = ['iej', 'period', 'procedure', 'written_speciality', 'oral_speciality',
+                'oral_1',  ]
index 382e9ee2cb0b574011854805cd71e20b95d65259..335f99c685b034f06af6377c0bf66a78c7106edf 100644 (file)
@@ -132,9 +132,11 @@ class Student(Model):
     application_fees = models.BooleanField(_('application fees'), blank=True)
     default_application_fees = 40
     subscription_fees = models.FloatField(_('subscription fees'), help_text='€', blank=True, null=True)
+    promo_code = models.CharField(_('promo code'), blank=True, max_length=100)
     date_subscribed = models.DateTimeField(_('subscription date'), null=True, blank=True)
     is_subscribed = models.BooleanField(_('subscribed'))
     confirmation_sent = models.BooleanField(_('confirmation sent'))
+    level = models.CharField(_('studying level'), blank=True, max_length=100)
 
     def __unicode__(self):
         try:
@@ -190,6 +192,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)
 
     class Meta(MetaCore):
         db_table = app_label + '_' + 'profiles'
@@ -242,5 +245,3 @@ class OptionalFee(models.Model):
         db_table = app_label + '_' + 'optional_fees'
         verbose_name = _("Optional fees")
         verbose_name_plural = _("Optional fees")
-
-
index a5a3ef5da8047df97181b8c0ca5d7832ec09677c..becda0e01be468edffbfb819cb8729310d990291 100644 (file)
@@ -723,4 +723,3 @@ class HelpView(TemplateView):
 
     def dispatch(self, *args, **kwargs):
         return super(HelpView, self).dispatch(*args, **kwargs)
-""""""