Fix search to include filters

This commit is contained in:
jdcaballerov 2020-12-14 13:40:38 -05:00
parent 45e97ea278
commit 6b5c881555
2 changed files with 3 additions and 2 deletions

View file

@ -18,6 +18,6 @@ class SearchResultsAdminMixin(object):
except Exception as err:
messages.add_message(request, messages.WARNING, f'Error from the search backend, only showing results from default admin search fields - Error: {err}')
else:
qs |= qsearch
qs = queryset & qsearch
finally:
return qs, use_distinct