From: Guillaume Pellerin Date: Wed, 3 Feb 2016 23:41:24 +0000 (+0100) Subject: update registration PDF X-Git-Tag: 1.1~131 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=df25f2cbc4a53ef91d4fea7ee776267e6e445cf6;p=teleforma.git update registration PDF --- diff --git a/teleforma/forms.py b/teleforma/forms.py index 8dae5586..229acbab 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -56,7 +56,7 @@ class ProfileInline(InlineFormSet): model = Profile can_delete = False exclude = ['wifi_login', 'wifi_pass', 'language', 'expiration_date', - 'init_password', 'country'] + 'init_password'] class StudentInline(InlineFormSet): diff --git a/teleforma/templates/registration/registration_pdf.html b/teleforma/templates/registration/registration_pdf.html index f826136c..973abfcf 100644 --- a/teleforma/templates/registration/registration_pdf.html +++ b/teleforma/templates/registration/registration_pdf.html @@ -22,6 +22,8 @@ {% block layout %} +{% with student.user.profile.all.0 as profile %} +