X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/08433423130c027b64c87c13c1bb4d2390694263..f3dbec099e62eec49b0a9e1d293e7f0dc12361c1:/apps/pdcounter/models.py?ds=sidebyside 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)