From 88497b1a8261dc959698b21b1308216eb04a98d1 Mon Sep 17 00:00:00 2001 From: calumbell Date: Tue, 19 May 2026 08:30:42 +0100 Subject: [PATCH] fixed search bug (non-existant extra fields) --- api_v2/models/document.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api_v2/models/document.py b/api_v2/models/document.py index 36147ebb..e3a5aeda 100644 --- a/api_v2/models/document.py +++ b/api_v2/models/document.py @@ -145,9 +145,7 @@ def get_absolute_url(self): return reverse(self.__name__, kwargs={"pk": self.pk}) def search_result_extra_fields(self): - return { - "school":self.school.key, - } + return class Meta: abstract = True \ No newline at end of file