X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/08433423130c027b64c87c13c1bb4d2390694263..5b9ee3437b7fa98820eba7286abd524c3ede76e9:/apps/pdcounter/models.py diff --git a/apps/pdcounter/models.py b/apps/pdcounter/models.py index 4dce99e36..7c10f1e59 100644 --- a/apps/pdcounter/models.py +++ b/apps/pdcounter/models.py @@ -90,8 +90,8 @@ class BookStub(models.Model): if not settings.NO_SEARCH_INDEX: def update_index(sender, instance, **kwargs): - import search - idx = search.Index() + from search.index import Index + idx = Index() idx.index_tags(instance, remove_only=not 'created' in kwargs) post_delete.connect(update_index, Author)