Fix search to include filters
This commit is contained in:
parent
45e97ea278
commit
6b5c881555
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -106,4 +106,5 @@ def index_links(links: Union[List[Link],None], out_dir: Path=OUTPUT_DIR):
|
|||
color='red',
|
||||
)
|
||||
else:
|
||||
write_search_index(link, texts, out_dir=out_dir)
|
||||
write_search_index(link, texts, out_dir=out_dir)
|
||||
|
Loading…
Reference in a new issue