X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/08433423130c027b64c87c13c1bb4d2390694263..0bd2f26c7d4a349bf9ae9377a945baf39d28af00:/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)