X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3862401b670120eaebd893e2bf445ce48f4d9e75..0b1d7187cd243b29566418c3b09fa8043ed53bee:/src/catalogue/models/book.py diff --git a/src/catalogue/models/book.py b/src/catalogue/models/book.py index eb87f10e7..9f0576c5d 100644 --- a/src/catalogue/models/book.py +++ b/src/catalogue/models/book.py @@ -407,6 +407,10 @@ class Book(models.Model): has_daisy_file.short_description = 'DAISY' has_daisy_file.boolean = True + @property + def media_daisy(self): + return self.get_media('daisy') + def get_audiobooks(self): ogg_files = {} for m in self.media.filter(type='ogg').order_by().iterator():