1
0
Fork 0

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: 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}') messages.add_message(request, messages.WARNING, f'Error from the search backend, only showing results from default admin search fields - Error: {err}')
else: else:
qs |= qsearch qs = queryset & qsearch
finally: finally:
return qs, use_distinct return qs, use_distinct

View file

@ -107,3 +107,4 @@ def index_links(links: Union[List[Link],None], out_dir: Path=OUTPUT_DIR):
) )
else: else:
write_search_index(link, texts, out_dir=out_dir) write_search_index(link, texts, out_dir=out_dir)