From 69dd532066585cad66e202e650f2c174808dc11f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 3 Sep 2024 18:40:27 +0200 Subject: ✨ QA container form: move form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_warehouse/models.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'archaeological_warehouse/models.py') diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 364926173..d501eab1f 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -1106,6 +1106,13 @@ class Container( target="many", rights=["change_container", "change_own_container"], ) + QA_MOVE = QuickAction( + url="container-qa-move", + icon_class="fa fa-arrow-right", + text=pgettext_lazy("action", "Move"), + target="many", + rights=["change_container", "change_own_container"], + ) QA_LOCK = QuickAction( url="container-qa-lock", icon_class="fa fa-lock", @@ -1113,7 +1120,7 @@ class Container( target="many", rights=["change_container", "change_own_container"], ) - QUICK_ACTIONS = [QA_EDIT, QA_LOCK] + QUICK_ACTIONS = [QA_EDIT, QA_MOVE, QA_LOCK] BASE_QUERY_LOCATION = "container_tree_child__container_parent" SERIALIZE_CALL = { -- cgit v1.2.3