X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dbb1ae2cf25105f7a3831961b08386a1326baef8..0950e2b491433f1b54a0c16563a885394d9f83d6:/apps/dictionary/models.py?ds=inline diff --git a/apps/dictionary/models.py b/apps/dictionary/models.py index 7df3d75e3..2256acf71 100644 --- a/apps/dictionary/models.py +++ b/apps/dictionary/models.py @@ -30,6 +30,6 @@ def build_notes(book): html=html_str, sort_key=sortify(text_str).strip()[:128]) -def notes_from_book(sender, **kwargs): - build_notes.delay(sender) +def notes_from_book(sender, instance, **kwargs): + build_notes.delay(instance) Book.html_built.connect(notes_from_book)