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-07-08 09:58:49 +0200
commitdf52872c63275babdec94d24d902775269329dea (patch)
treed4c198e6b60ab0f77d7babb3a310e8e03267346e /archaeological_context_records/models.py
parent41a2421553be974de87c0b9737427e9131f38859 (diff)
downloadIshtar-df52872c63275babdec94d24d902775269329dea.tar.bz2
Ishtar-df52872c63275babdec94d24d902775269329dea.zip
rapid action context record show add a find #5184 part one
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 41a76b171..80638e9ad 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -1009,6 +1009,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