return
def fix_format(text):
- return re.sub("/$", "", text, flags=re.M)
+ return re.sub("(?m)/$", "", text)
def add_part(snippets, **fields):
doc = self.create_book_doc(book)
--- /dev/null
+from django.core.management.base import BaseCommand
+
+class Command(BaseCommand):
+ help = 'Reindex everything.'
+ args = ''
+
+ def handle(self, *args, **opts):
+ from catalogue.models import Book
+ import search
+ idx = search.ReusableIndex()
+ idx.open()
+ for b in Book.objects.all():
+ print b.title
+ idx.index_book(b, None)
+ print 'Reindexing tags.'
+ idx.index_tags()
-Subproject commit a34b95aa7ba5fd4838541d1cdcd28358fb808062
+Subproject commit cbabbdaa7ab6c6be8cd22b77860331444ddf6119
# PIL
PIL>=1.1.6
mutagen>=1.17
-sorl-thumbnail>=11.09<12
+sorl-thumbnail>=11.09,<12
# home-brewed & dependencies
lxml>=2.2.2