index with solr works.
[wolnelektury.git] / apps / catalogue / tasks.py
old mode 100755 (executable)
new mode 100644 (file)
index cf61789..8cba04f
@@ -18,6 +18,11 @@ def touch_tag(tag):
     type(tag).objects.filter(pk=tag.pk).update(**update_dict)
 
 
     type(tag).objects.filter(pk=tag.pk).update(**update_dict)
 
 
+@task(ignore_result=True)
+def fix_tree_tags(book):
+    book.fix_tree_tags()
+
+
 @task
 def index_book(book_id, book_info=None):
     from catalogue.models import Book
 @task
 def index_book(book_id, book_info=None):
     from catalogue.models import Book