summaryrefslogtreecommitdiff
path: root/archaeological_finds/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/urls.py')
-rw-r--r--archaeological_finds/urls.py41
1 files changed, 40 insertions, 1 deletions
diff --git a/archaeological_finds/urls.py b/archaeological_finds/urls.py
index 467df9770..6e6f6ff0a 100644
--- a/archaeological_finds/urls.py
+++ b/archaeological_finds/urls.py
@@ -18,16 +18,19 @@
# See the file COPYING for details.
from django.conf.urls import url
-from django.urls import path
+from django.urls import path, register_converter
from ishtar_common.utils import check_permissions, get_urls_for_model
+from ishtar_common import urls_converters
from ishtar_common.views import QALinkView
from archaeological_finds import views
from archaeological_finds import views_api
from archaeological_operations.views import administrativeactfile_document
from archaeological_finds import models
+register_converter(urls_converters.DateTimeConverter, "datetime")
+
# be careful: each check_permissions must be relevant with ishtar_menu
# forms
@@ -455,6 +458,36 @@ urlpatterns = [
name="exhibition-create",
),
path(
+ "exhibition/qa/add-loan/<int:pks>/",
+ check_permissions(
+ ["archaeological_finds.add_treatmentfile"]
+ )(views.QAExhibitionLoanFormView.as_view()),
+ name="exhibition-qa-add-loan",
+ ),
+ path(
+ "exhibition/modify/<int:pk>/",
+ check_permissions(
+ ["archaeological_finds.change_exhibition",
+ "archaeological_finds.change_own_exhibition"]
+ )(views.ExhibitionEditView.as_view()),
+ name="exhibition-modify",
+ ),
+ path(
+ "exhibition/show/<int:pk>/",
+ views.show_exhibition,
+ name="exhibition-show-historized",
+ ),
+ path(
+ "exhibition/show/<int:pk>/<datetime:date>/",
+ views.show_exhibition,
+ name="exhibition-show-historized",
+ ),
+ path(
+ "exhibition/revert/<int:pk>/<datetime:date>/",
+ views.revert_exhibition,
+ name="exhibition-revert"
+ ),
+ path(
"exhibition/<step>/",
check_permissions(
["archaeological_finds.view_exhibition",
@@ -462,6 +495,12 @@ urlpatterns = [
)(views.exhibition_wizard),
name="exhibition-search",
),
+ path("show-exhibition/<int:pk>/<slug:type>",
+ views.show_exhibition, name="show-exhibition"),
+ path("show-exhibition/<int:pk>/",
+ views.show_exhibition, name="show-exhibition"),
+ path("display-exhibition/<int:pk>/",
+ views.display_exhibition, name="display-exhibition"),
url(
r"^treatmentfle_search/(?P<step>.+)?$",
check_permissions(