From: Radek Czajka Date: Fri, 7 Jan 2011 17:28:00 +0000 (+0100) Subject: get_media bugfix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/2a08a05c5bdc8fe332df2641930eb698d1378080?hp=e2e94b4feb7f08974999a16c720911d0094c3797 get_media bugfix --- diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index 1e6bb95e2..b258128ce 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -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":