From 2f1674b5d99d0f5221239078d5e083dd27f75fd6 Mon Sep 17 00:00:00 2001 From: Paul Traylor Date: Mon, 7 Aug 2023 11:36:47 +0900 Subject: [PATCH] [BUGFIX] Fix for rule prefetch on /search In f48218e3228ab625362c66811c11597381f0a872 we refactored how rules stored labels/annotations but when we updated this prefetch entry we accidentally changed it so that is no longer a proper tuple. This needs to be a tuple so that it does not try to treat each character as an entry. --- promgen/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/promgen/views.py b/promgen/views.py index e3b77d317..ae8ee4d8e 100644 --- a/promgen/views.py +++ b/promgen/views.py @@ -1134,7 +1134,7 @@ def get(self, request): "rule_list": { "field": ("name__icontains", "clause__icontains"), "model": models.Rule, - "prefetch": ("content_object"), + "prefetch": ("content_object",), "query": ("search",), }, "service_list": {