From: Guillaume Pellerin Date: Sat, 30 Jan 2016 08:13:21 +0000 (+0100) Subject: add more fields X-Git-Tag: 1.1~163^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=01bb35454323723f6d37449a51d472812bbacf4d;p=teleforma.git add more fields --- diff --git a/teleforma/forms.py b/teleforma/forms.py index c434d503..98a66abf 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -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', ] diff --git a/teleforma/models/crfpa.py b/teleforma/models/crfpa.py index 382e9ee2..335f99c6 100644 --- a/teleforma/models/crfpa.py +++ b/teleforma/models/crfpa.py @@ -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") - - diff --git a/teleforma/views/core.py b/teleforma/views/core.py index a5a3ef5d..becda0e0 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -723,4 +723,3 @@ class HelpView(TemplateView): def dispatch(self, *args, **kwargs): return super(HelpView, self).dispatch(*args, **kwargs) -""""""