summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-13 13:30:02 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-13 15:48:10 +0100
commitce71f7f286819ee1399fef5f1819f9cc812149a6 (patch)
tree958d29dbd53c737182fadb61705daf50b0f6a81e /ishtar_common/models.py
parent61cb345d6e39eac393c6fd8e4a8246b5221c69a9 (diff)
downloadIshtar-ce71f7f286819ee1399fef5f1819f9cc812149a6.tar.bz2
Ishtar-ce71f7f286819ee1399fef5f1819f9cc812149a6.zip
✨ sheets: refactor document listing - add edit and unlink actions (refs #6221)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index ae0656c6d..6a793e326 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -2480,6 +2480,10 @@ class Area(HierarchicalType, DocumentItem, MainItem):
return self.label
return "{} ({})".format(self.label, self.reference)
+ def can_edit(self, request):
+ print("TODO: define specific permissions for areas")
+ return False
+
@classmethod
def get_or_create_by_towns(cls, towns, get_geo=False):
if hasattr(towns, "all"): # queryset