summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-10-12 11:38:13 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:23:18 +0100
commit8e002b956ea2b53d31a544cc149c18fd6d910a17 (patch)
treedc91a1f0efc1a475345acacfa6aba384629da16c /archaeological_operations/models.py
parent314e8ac660877752acf0a353e2833e4b0c500ccb (diff)
downloadIshtar-8e002b956ea2b53d31a544cc149c18fd6d910a17.tar.bz2
Ishtar-8e002b956ea2b53d31a544cc149c18fd6d910a17.zip
Geo: clean old methods - fix geodata post treatments on geo form - quick add geo action
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 045b20fed..0b21df533 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -1813,6 +1813,10 @@ class Operation(
True,
),
] + actions
+
+ can_add_geo = self.can_do(request, "add_geovectordata")
+ if can_add_geo:
+ actions.append(self.get_add_geo_action())
can_add_cr = self.can_do(request, "add_contextrecord")
if can_add_cr and not is_locked:
start = actions