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 | 124a782ab4bf9ac42cbf404362a0be2826ff6e99 (patch) | |
tree | afefa2719e43e47bea82889ed08219065c198be5 /ishtar_common/urls.py | |
parent | e0618ad7a9b3c18433c0ec1be1d0035cb32ceee5 (diff) | |
download | Ishtar-124a782ab4bf9ac42cbf404362a0be2826ff6e99.tar.bz2 Ishtar-124a782ab4bf9ac42cbf404362a0be2826ff6e99.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) |