summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
authorCefin <kevon@tuta.io>2021-11-09 12:37:30 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-05-27 08:57:31 +0200
commit9ee2d65527082da0167b8c4c92faf16f8e25d3b1 (patch)
treee9c952b1c4ba536fce7f962b8516e820efe738d4 /archaeological_context_records/models.py
parentffd47c28bd7288a88745964a2031e61d991b0364 (diff)
downloadIshtar-9ee2d65527082da0167b8c4c92faf16f8e25d3b1.tar.bz2
Ishtar-9ee2d65527082da0167b8c4c92faf16f8e25d3b1.zip
Quick action context record - add a find (refs #5184)
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index d143ddd09..14ef1f62b 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -967,6 +967,18 @@ class ContextRecord(
True,
),
]
+ can_create_find = self.can_do(request, "add_find")
+ if can_create_find:
+ actions += [
+ (
+ reverse("find_create", args=[self.pk]),
+ _("Add find"),
+ "fa fa-plus",
+ _("find"),
+ "",
+ True,
+ ),
+ ]
return actions
@classmethod