summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-03-09 13:26:04 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2020-03-09 13:28:05 +0100
commit75e29a2addd37be388321a9453fd12c346376529 (patch)
tree2f2bd88a0360e3674ce7bdbfc135f737166e1bf3 /archaeological_operations/models.py
parent41aa41d8b8743e1450654f399e543c2b01311a78 (diff)
downloadIshtar-75e29a2addd37be388321a9453fd12c346376529.tar.bz2
Ishtar-75e29a2addd37be388321a9453fd12c346376529.zip
Quick actions - tables - site: add bulk update form (towns field)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 54a44999c..8dd6568b8 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -278,11 +278,19 @@ class ArchaeologicalSite(DocumentItem, BaseHistorizedItem, QRCodeItem,
DOWN_MODEL_UPDATE = ["context_records"]
QA_LOCK = QuickAction(
- url="operation-qa-lock", icon_class="fa fa-lock",
+ url="site-qa-lock", icon_class="fa fa-lock",
text=_(u"Lock/Unlock"), target="many",
- rights=['change_operation', 'change_own_operation']
+ rights=['change_archaeologicalsite',
+ 'change_own_archaeologicalsite']
+ )
+ QA_EDIT = QuickAction(
+ url="site-qa-bulk-update", icon_class="fa fa-pencil",
+ text=_(u"Bulk update"), target="many",
+ rights=['change_archaeologicalsite',
+ 'change_own_archaeologicalsite']
)
QUICK_ACTIONS = [
+ QA_EDIT,
QA_LOCK,
QuickAction(
url="site-qa-duplicate", icon_class="fa fa-clone",
@@ -946,6 +954,7 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, QRCodeItem,
QA_EDIT = QuickAction(
url="operation-qa-bulk-update", icon_class="fa fa-pencil",
text=_(u"Bulk update"), target="many",
+ rights=['change_operation', 'change_own_operation']
)
QA_LOCK = QuickAction(
url="operation-qa-lock", icon_class="fa fa-lock",