summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-19 11:54:38 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-19 12:39:22 +0100
commit3adbd561ced57cb9c950af2d6d7d25f57f8799e0 (patch)
treee2301ff31a54062c731a60774e088f073d6a89cf /ishtar_common/models.py
parent6468fa4c22b5ec2c30b450a5d0f8cc005d01f4be (diff)
downloadIshtar-3adbd561ced57cb9c950af2d6d7d25f57f8799e0.tar.bz2
Ishtar-3adbd561ced57cb9c950af2d6d7d25f57f8799e0.zip
🚑️ fix huge performance problems on permissions when too many items are attached
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index abff81056..1ac95dd7e 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -5030,13 +5030,13 @@ class Document(
query_own_list.append((rel_model + "__", q_own_dct))
q = None
for prefix, owns in query_own_list:
- subq = cls._construct_query_own(prefix, owns)
+ subq = cls._construct_query_own(cls, prefix, owns)
if subq:
if not q:
q = subq
else:
q |= subq
- q |= cls._construct_query_own("", [{"history_creator": ishtaruser.user_ptr}])
+ q |= cls._construct_query_own(cls, "", [{"history_creator": ishtaruser.user_ptr}])
return q
def get_associated_operation(self):