diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-11-28 17:58:55 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-19 14:45:56 +0100 |
commit | d0760b4da854e1dadb4ff130468a4c6d185b1abc (patch) | |
tree | 464aab890c5d8ea8b51f6ad3558446b3c8018036 /archaeological_finds/urls.py | |
parent | f10b03c55ece933e4277cdf1e7d4acfba9fdd7ed (diff) | |
download | Ishtar-d0760b4da854e1dadb4ff130468a4c6d185b1abc.tar.bz2 Ishtar-d0760b4da854e1dadb4ff130468a4c6d185b1abc.zip |
✨ exhibition: forms/sheets
Diffstat (limited to 'archaeological_finds/urls.py')
-rw-r--r-- | archaeological_finds/urls.py | 41 |
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( |