diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-03 18:40:27 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-09-05 16:09:40 +0200 |
commit | 69dd532066585cad66e202e650f2c174808dc11f (patch) | |
tree | db6ac956ef1044af25d6a9b49ba1f08a2eb0c41e /archaeological_warehouse/models.py | |
parent | 1720a9a24b4d53cd4d5981f1b847bd3642fa6fae (diff) | |
download | Ishtar-69dd532066585cad66e202e650f2c174808dc11f.tar.bz2 Ishtar-69dd532066585cad66e202e650f2c174808dc11f.zip |
✨ QA container form: move form
Diffstat (limited to 'archaeological_warehouse/models.py')
-rw-r--r-- | archaeological_warehouse/models.py | 9 |
1 files changed, 8 insertions, 1 deletions
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 = { |