From 715c97d246c9375fc8cf055990c1f49c3efc9522 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 14 Nov 2025 17:06:40 +0100 Subject: ✨ datings refactoring: add actions on sheet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_context_records/models.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'archaeological_context_records/models.py') diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 63e6a773d..4da7e35e2 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -1261,6 +1261,17 @@ class ContextRecord( profile = get_current_profile() can_add_geo = can_edit_cr and profile.mapping and \ self.can_do(request, "ishtar_common.add_geovectordata") + if can_edit_cr and not is_locked: + actions += [ + ( + reverse("context-record-dating-add", args=[self.pk]), + _("Add period"), + "fa fa-plus", + _("period"), + "", + True, + ), + ] if can_add_geo: actions.append(self.get_add_geo_action()) can_create_find = self.can_do(request, "archaeological_finds.add_find") -- cgit v1.2.3