From 3adbd561ced57cb9c950af2d6d7d25f57f8799e0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 19 Mar 2025 11:54:38 +0100 Subject: 🚑️ fix huge performance problems on permissions when too many items are attached MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_warehouse/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_warehouse/models.py') diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 3cb04816d..db549912d 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -621,7 +621,7 @@ class Warehouse( @classmethod def get_query_owns(cls, ishtaruser): - return cls._construct_query_own("", cls._get_query_owns_dicts(ishtaruser)) + return cls._construct_query_own(cls, "", cls._get_query_owns_dicts(ishtaruser)) @classmethod def _get_query_owns_dicts(cls, ishtaruser): -- cgit v1.2.3