X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7e113c61d336d677b96ff0ed55a5f81eb2b80d53..0ffaeae32918d959e94e2d94e0a020458a409a3a:/src/catalogue/models/bookmedia.py?ds=sidebyside

diff --git a/src/catalogue/models/bookmedia.py b/src/catalogue/models/bookmedia.py
index ec37849d2..4532c862e 100644
--- 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