more/less in book download lists
[wolnelektury.git] / src / catalogue / models / book.py
index 140ba50..12fdb8d 100644 (file)
@@ -195,6 +195,9 @@ class Book(models.Model):
         else:
             return self.media.filter(type=type_).exists()
 
+    def has_audio(self):
+        return self.has_media('mp3')
+
     def get_media(self, type_):
         if self.has_media(type_):
             if type_ in Book.formats: