-# -*- coding: utf-8 -*-
# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
def update_counters():
from .helpers import update_counters
update_counters()
+
+
+@task(ignore_result=True)
+def update_references(book_id):
+ from catalogue.models import Book
+ Book.objects.get(id=book_id).update_references()
+