From 85e2acbaf5f0f557d77a4ad63753a7d740787fad Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 4 Feb 2016 01:24:45 +0100 Subject: [PATCH] fix url and order --- teleforma/forms.py | 2 +- teleforma/templates/registration/registration_pdf.html | 2 +- teleforma/urls.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/teleforma/forms.py b/teleforma/forms.py index 229acbab..3d529af3 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -19,7 +19,7 @@ class UserForm(ModelForm): class Meta: model = User - fields = ['last_name', 'first_name', 'email', ] + fields = ['first_name', 'last_name', 'email', ] RegistrationForm.base_fields.update(UserForm.base_fields) diff --git a/teleforma/templates/registration/registration_pdf.html b/teleforma/templates/registration/registration_pdf.html index 0a22bf7b..b76352ac 100644 --- a/teleforma/templates/registration/registration_pdf.html +++ b/teleforma/templates/registration/registration_pdf.html @@ -33,8 +33,8 @@
- + diff --git a/teleforma/urls.py b/teleforma/urls.py index 5fd2713c..93d1b7a1 100644 --- a/teleforma/urls.py +++ b/teleforma/urls.py @@ -58,7 +58,7 @@ urlpatterns = patterns('', # (r'^accounts/register0/$', RegistrationView.as_view(), {'form_class':CustomRegistrationForm}), url(r'^accounts/register/$', UserAddView.as_view(), name="teleforma-register"), url(r'^accounts/complete/(?P.*)/$', UserCompleteView.as_view(), name="teleforma-register-complete"), - url(r'^accounts/register/(?P.*)/download/$', RegistrationPDFViewDownload.as_view(), name="teleforma-registration-download"), + url(r'^accounts/register/(?P.*)/download/$', RegistrationPDFViewDownload.as_view(), name="teleforma-registration-download"), url(r'^accounts/register/(?P.*)/view/$', RegistrationPDFView.as_view(), name="teleforma-registration-view"), url(r'^captcha/', include('captcha.urls')), -- 2.39.5
{% trans "Last name" %} : {{ student.user.last_name|upper }}
{% trans "First name" %} : {{ student.user.first_name|upper }}
{% trans "Last name" %} : {{ student.user.last_name|upper }}
{% trans "Address" %} : {{ profile.address }} {{ profile.postal_code }} {{ profile.city }} {{ profile.country }}
{% trans "Telephone" %} : {{ profile.telephone }}
{% trans "E-mail" %} : {{ student.user.email }}