diff options
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) |