diff options
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:44:45 +0100 |
commit | b0c2ded8e95dcf61b36685fec4b40d9bcf82bef0 (patch) | |
tree | 72a8ac0ec7b8c779516bd2d22bb057163b64243d /ishtar_common/models.py | |
parent | c1fa91b2acb68aff15ca1dfbabaf51d8ea83e166 (diff) | |
download | Ishtar-b0c2ded8e95dcf61b36685fec4b40d9bcf82bef0.tar.bz2 Ishtar-b0c2ded8e95dcf61b36685fec4b40d9bcf82bef0.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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 012bf920d..b5e6d705b 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -5510,13 +5510,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): |