fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Content warnings.
[wolnelektury.git]
/
src
/
catalogue
/
tasks.py
diff --git
a/src/catalogue/tasks.py
b/src/catalogue/tasks.py
index
781dd6e
..
499e8e6
100644
(file)
--- a/
src/catalogue/tasks.py
+++ b/
src/catalogue/tasks.py
@@
-65,3
+65,10
@@
def build_custom_pdf(book_id, customizations, file_name, waiter_id=None):
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()
+