X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..cbf4353403bf60dd0966e060a78893685080ae0b:/src/catalogue/signals.py?ds=sidebyside diff --git a/src/catalogue/signals.py b/src/catalogue/signals.py index 3adfedbb0..f3cacaaf7 100644 --- a/src/catalogue/signals.py +++ b/src/catalogue/signals.py @@ -19,6 +19,7 @@ from .models import BookMedia, Book, Collection, Fragment, Tag @receiver([post_save, post_delete], sender=BookMedia) def bookmedia_save(sender, instance, **kwargs): + instance.book.set_audio_length() instance.book.save()