fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cite/banner/carousel change.
[wolnelektury.git]
/
src
/
catalogue
/
models
/
bookmedia.py
diff --git
a/src/catalogue/models/bookmedia.py
b/src/catalogue/models/bookmedia.py
index
ec37849
..
4532c86
100644
(file)
--- a/
src/catalogue/models/bookmedia.py
+++ b/
src/catalogue/models/bookmedia.py
@@
-154,3
+154,6
@@
class BookMedia(models.Model):
@property
def artist(self):
return self.extra_info.get('artist_name', None)
+
+ def file_url(self):
+ return self.file.url