Cite base
[wolnelektury.git] / src / catalogue / models / bookmedia.py
index ec37849..4532c86 100644 (file)
@@ -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