]> git.parisson.com Git - teleforma.git/commitdiff
fix url and order
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 4 Feb 2016 00:24:45 +0000 (01:24 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 4 Feb 2016 00:24:45 +0000 (01:24 +0100)
teleforma/forms.py
teleforma/templates/registration/registration_pdf.html
teleforma/urls.py

index 229acbab948fafa4e7b6892713c981e953a375e3..3d529af308de2be4b5247b16a580137274da375a 100644 (file)
@@ -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)
 
index 0a22bf7bda55a5af3237153629bcb611ed1987ef..b76352ac51e1a622cdba301a112294f8336696a3 100644 (file)
@@ -33,8 +33,8 @@
 <div id="content">
 
    <table class="table1">
-      <tr><td class="bold">{% trans "Last name" %} : </td><td>{{ student.user.last_name|upper }}</td></tr>
       <tr><td class="bold">{% trans "First name" %} : </td><td>{{ student.user.first_name|upper }}</td></tr>
+      <tr><td class="bold">{% trans "Last name" %} : </td><td>{{ student.user.last_name|upper }}</td></tr>
       <tr><td class="bold">{% trans "Address" %} : </td><td>{{ profile.address }} {{ profile.postal_code }} {{ profile.city }} {{ profile.country }}</td></tr>
       <tr><td class="bold">{% trans "Telephone" %} : </td><td>{{ profile.telephone }}</td></tr>
       <tr><td class="bold">{% trans "E-mail" %} : </td><td>{{ student.user.email }}</td></tr>
index 5fd2713c8e72485b24e3ebe134a7fc9f30af0f98..93d1b7a1512e9d4d1ab70730847505b5ece0d569 100644 (file)
@@ -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<username>.*)/$', UserCompleteView.as_view(), name="teleforma-register-complete"),
-    url(r'^accounts/register/(?P<pk>.*)/download/$', RegistrationPDFViewDownload.as_view(), name="teleforma-registration-download"),
+    url(r'^accounts/register/(?P<username>.*)/download/$', RegistrationPDFViewDownload.as_view(), name="teleforma-registration-download"),
     url(r'^accounts/register/(?P<username>.*)/view/$', RegistrationPDFView.as_view(), name="teleforma-registration-view"),
 
     url(r'^captcha/', include('captcha.urls')),