From 68190548376cd951d9e0466f385afd7ee94a5256 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 29 Apr 2024 18:43:36 +0200 Subject: ✨ templates: get containers values from the operation - performance: add cache (refs #5927) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_context_records/models.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'archaeological_context_records/models.py') diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 3c733413b..179ed154d 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -925,13 +925,11 @@ class ContextRecord( ("base_finds", _("List of associated base finds")), ] - def get_values(self, prefix="", no_values=False, filtr=None, **kwargs): + def get_extra_values(self, prefix="", no_values=False, filtr=None, **kwargs): + values = {} no_base_finds = True if "no_base_finds" in kwargs: no_base_finds = kwargs["no_base_finds"] - values = super(ContextRecord, self).get_values( - prefix=prefix, no_values=no_values, filtr=filtr, **kwargs - ) if prefix and no_base_finds or kwargs.get("force_no_base_finds", True): return values -- cgit v1.2.3