diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-08 17:17:07 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 10:46:13 +0200 | 
| commit | ef4a039625f5f68f8e16ec5f1737f31da85fdaa5 (patch) | |
| tree | afefa2719e43e47bea82889ed08219065c198be5 /ishtar_common/urls.py | |
| parent | efe1f3b818898c33e0e2d6fb42e6267c509f691a (diff) | |
| download | Ishtar-ef4a039625f5f68f8e16ec5f1737f31da85fdaa5.tar.bz2 Ishtar-ef4a039625f5f68f8e16ec5f1737f31da85fdaa5.zip  | |
Documents: edit form
Diffstat (limited to 'ishtar_common/urls.py')
| -rw-r--r-- | ishtar_common/urls.py | 20 | 
1 files changed, 12 insertions, 8 deletions
diff --git a/ishtar_common/urls.py b/ishtar_common/urls.py index 5ef316723..d030c4529 100644 --- a/ishtar_common/urls.py +++ b/ishtar_common/urls.py @@ -224,18 +224,22 @@ urlpatterns += [      url(r'show-shortcut-menu/$', views.show_shortcut_menu,          name='show-shortcut-menu'), -    url(r'document_search/(?P<step>.+)?$', +    url(r'document/search/(?P<step>.+)?$',          check_rights(['view_document', 'view_own_document'])(              views.document_search_wizard), -        name='document_search'), -    url(r'document_creation/$', +        name='search-document'), +    url(r'document/create/$',          check_rights(['add_document', 'add_own_document'])( -            views.DocumentFormView.as_view()), -        name='document_creation'), -    url(r'document_modification/(?P<pk>.+)/$', +            views.DocumentCreateView.as_view()), +        name='create-document'), +    url(r'document/edit/$',          check_rights(['change_document', 'change_own_document'])( -            views.DocumentFormView.as_view()), -        name='document_modification'), +            views.DocumentSelectView.as_view()), +        name='edit-document'), +    url(r'document/edit/(?P<pk>.+)/$', +        check_rights(['change_document', 'change_own_document'])( +            views.DocumentEditView.as_view()), +        name='edit-document'),  ]  urlpatterns += get_urls_for_model(models.Document, views)  | 
