X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7e113c61d336d677b96ff0ed55a5f81eb2b80d53..e180be7cce99d59054b206a061386188c5652f02:/src/catalogue/models/bookmedia.py 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