X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7e113c61d336d677b96ff0ed55a5f81eb2b80d53..d048787bd42b9d009aa7b3dfb5c08f7682f231e6:/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