From: Guillaume Pellerin Date: Thu, 4 Feb 2016 00:30:03 +0000 (+0100) Subject: finally fix pdf format X-Git-Tag: 1.1~117 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=17de2d39f20539a4986f3ed7b4e6e811333edd3b;p=teleforma.git finally fix pdf format --- diff --git a/teleforma/urls.py b/teleforma/urls.py index cb205dfe..313962c9 100644 --- a/teleforma/urls.py +++ b/teleforma/urls.py @@ -58,8 +58,8 @@ urlpatterns = patterns('', # (r'^accounts/register0/$', RegistrationView.as_view(), {'form_class':CustomRegistrationForm}), url(r'^accounts/register/$', UserAddView.as_view(), name="teleforma-register"), url(r'^accounts/register/(?P.*)/complete/$', 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.*)/view/$', RegistrationPDFView.as_view(), name="teleforma-registration-view"), + url(r'^accounts/register/(?P.*)/download/?format=pdf$', RegistrationPDFViewDownload.as_view(), name="teleforma-registration-download"), + url(r'^accounts/register/(?P.*)/view/?format=pdf$', RegistrationPDFView.as_view(), name="teleforma-registration-view"), url(r'^captcha/', include('captcha.urls')),