diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-06-11 15:13:09 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:20 +0100 |
commit | a8a99c748ba13ef394ff9006f0e192f320c459f1 (patch) | |
tree | 93f1e26e1f53c65bebfdbd69e10b3bde0dec4918 /archaeological_warehouse/models.py | |
parent | 4ea9e96c0644b0986b1cf9d6b833f5bc3a175e94 (diff) | |
download | Ishtar-a8a99c748ba13ef394ff9006f0e192f320c459f1.tar.bz2 Ishtar-a8a99c748ba13ef394ff9006f0e192f320c459f1.zip |
Container: bulk update
Diffstat (limited to 'archaeological_warehouse/models.py')
-rw-r--r-- | archaeological_warehouse/models.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index e130671a3..97fa38c88 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -694,12 +694,16 @@ class Container(DocumentItem, Merge, LightHistorizedItem, QRCodeItem, GeoItem, ), } + QA_EDIT = QuickAction( + url="container-qa-bulk-update", icon_class="fa fa-pencil", + text=_("Bulk update"), target="many", + rights=['change_container', 'change_own_container']) QA_LOCK = QuickAction( url="container-qa-lock", icon_class="fa fa-lock", text=_("Lock/Unlock"), target="many", rights=['change_container', 'change_own_container'] ) - QUICK_ACTIONS = [QA_LOCK] + QUICK_ACTIONS = [QA_EDIT, QA_LOCK] objects = UUIDModelManager() |