X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/67905ab03cb741371bd13c4f6775544b93388b3c..480da6ff4ed8c04b205710c318b2fcfcb961bbc7:/apps/catalogue/tasks.py diff --git a/apps/catalogue/tasks.py b/apps/catalogue/tasks.py old mode 100755 new mode 100644 index cf6178939..8cba04fd7 --- a/apps/catalogue/tasks.py +++ b/apps/catalogue/tasks.py @@ -18,6 +18,11 @@ def touch_tag(tag): 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