get_media bugfix
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 7 Jan 2011 17:28:00 +0000 (18:28 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 7 Jan 2011 17:28:00 +0000 (18:28 +0100)
apps/catalogue/models.py

index 1e6bb95..b258128 100644 (file)
@@ -313,7 +313,7 @@ class Book(models.Model):
             elif type == "html":
                 return self.html_file
             elif type == "epub":
-                return self.html_file                
+                return self.epub_file
             elif type == "txt":
                 return self.txt_file
             elif type == "pdf":