Skip to content

Commit

Permalink
[BUGFIX] Fix for rule prefetch on /search
Browse files Browse the repository at this point in the history
In f48218e 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.
  • Loading branch information
kfdm committed Aug 7, 2023
1 parent 85cfac5 commit 2f1674b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promgen/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 2f1674b

Please sign in to comment.