From 5341c3beb0fc3b52e864156bbfee54db78612b20 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 5 Jun 2018 20:42:14 +0200 Subject: Document form - refactoring (refs #4107) --- ishtar_common/urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ishtar_common/urls.py') diff --git a/ishtar_common/urls.py b/ishtar_common/urls.py index 787c72aba..5ef316723 100644 --- a/ishtar_common/urls.py +++ b/ishtar_common/urls.py @@ -228,13 +228,13 @@ urlpatterns += [ check_rights(['view_document', 'view_own_document'])( views.document_search_wizard), name='document_search'), - url(r'document_creation/(?P.+)?$', + url(r'document_creation/$', check_rights(['add_document', 'add_own_document'])( - views.NewDocumentFormView.as_view()), + views.DocumentFormView.as_view()), name='document_creation'), - url(r'document_modification/(?P.+)?$', + url(r'document_modification/(?P.+)/$', check_rights(['change_document', 'change_own_document'])( - views.NewDocumentFormView.as_view()), + views.DocumentFormView.as_view()), name='document_modification'), ] -- cgit v1.2.3