Fix for Bug: Search sometimes shows the same snapshot twice #1193
Making sure the search results are unique
This commit is contained in:
parent
22eff07a11
commit
aca0512926
|
@ -18,4 +18,4 @@ class SearchResultsAdminMixin:
|
|||
print(f'[!] Error while using search backend: {err.__class__.__name__} {err}')
|
||||
messages.add_message(request, messages.WARNING, f'Error from the search backend, only showing results from default admin search fields - Error: {err}')
|
||||
|
||||
return qs, use_distinct
|
||||
return qs.distinct(), use_distinct
|
||||
|
|
Loading…
Reference in a new issue