fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor css fix.
[wolnelektury.git]
/
src
/
catalogue
/
models
/
book.py
diff --git
a/src/catalogue/models/book.py
b/src/catalogue/models/book.py
index
eb87f10
..
9f0576c
100644
(file)
--- 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
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():
def get_audiobooks(self):
ogg_files = {}
for m in self.media.filter(type='ogg').order_by().iterator():