X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/75957f735219259d3b4bc361f80ccd3d7b92a0e9..f4e9d89859fd521ec9eeb1f94f9caa374ef86960:/src/catalogue/signals.py?ds=sidebyside diff --git a/src/catalogue/signals.py b/src/catalogue/signals.py index 72f8a8910..81c0b9ce6 100644 --- a/src/catalogue/signals.py +++ b/src/catalogue/signals.py @@ -53,13 +53,6 @@ def book_save(sender, instance, **kwargs): def book_delete(sender, instance, **kwargs): caches[settings.CACHE_MIDDLEWARE_ALIAS].clear() - if not settings.NO_SEARCH_INDEX: - # remove the book from search index, when it is deleted. - from search.index import Index - idx = Index() - idx.remove_book(instance) - idx.index_tags() - #### # Tag