mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
Implement flush for search backend after remove command
This commit is contained in:
parent
c2c01af3ad
commit
47daa038eb
5 changed files with 21 additions and 7 deletions
|
@ -18,7 +18,7 @@ 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:
|
||||
qsearch = queryset.filter(id__in=snapshot_ids)
|
||||
qsearch = queryset.filter(pk__in=snapshot_ids)
|
||||
qs |= qsearch
|
||||
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue