summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py11
1 files changed, 11 insertions, 0 deletions
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")