X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/67905ab03cb741371bd13c4f6775544b93388b3c..8b808f24709efb16f6b6eff6abb05b41341573c7:/apps/catalogue/tasks.py?ds=sidebyside 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