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_files/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_files/models.py') diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 06d927fcd..9e06db0f2 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -1360,7 +1360,7 @@ class File( @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)) def is_active(self): return not bool(self.end_date) -- cgit v1.2.3