From 4c63a7715cab10c1ec4283567e0fc1e1454befb5 Mon Sep 17 00:00:00 2001 From: Cefin Date: Tue, 9 Nov 2021 12:37:30 +0100 Subject: rapid action context record show add a find #5184 part one --- archaeological_context_records/models.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- cgit v1.2.3