From df25f2cbc4a53ef91d4fea7ee776267e6e445cf6 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 4 Feb 2016 00:41:24 +0100 Subject: [PATCH] update registration PDF --- teleforma/forms.py | 2 +- .../registration/registration_pdf.html | 25 +++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) 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 %} +