1 from django.core.management.base import BaseCommand
3 class Command(BaseCommand):
4 help = 'Reindex everything.'
7 def handle(self, *args, **opts):
8 from catalogue.models import Book
10 idx = search.ReusableIndex()
16 books += Book.objects.filter(slug=a).all()
18 books = Book.objects.all()
22 idx.index_book(b, None)
23 print 'Reindexing tags.'