fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add command to clean social accounts from unnecessary data
[wolnelektury.git]
/
src
/
catalogue
/
signals.py
diff --git
a/src/catalogue/signals.py
b/src/catalogue/signals.py
index
3adfedb
..
f3cacaa
100644
(file)
--- 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()