Fixes #3511: capitalize objects.
[wolnelektury.git] / apps / search / management / commands / reindex.py
index 4a17acd..4941354 100755 (executable)
@@ -51,8 +51,8 @@ class Command(BaseCommand):
     )
     def handle(self, *args, **opts):
         from catalogue.models import Book
     )
     def handle(self, *args, **opts):
         from catalogue.models import Book
-        import search
-        idx = search.Index()
+        from search.index import Index
+        idx = Index()
         
         if not opts['just_tags']:
             if args:
         
         if not opts['just_tags']:
             if args: