From: Radek Czajka Date: Mon, 12 Dec 2011 08:36:41 +0000 (+0100) Subject: Book.short_html fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/7b49c1a8c8a2c7634342ebcacb5520f8e243fda4?ds=sidebyside;hp=--cc Book.short_html fix --- 7b49c1a8c8a2c7634342ebcacb5520f8e243fda4 diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index afc241ddd..12b394d00 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -481,7 +481,7 @@ class Book(models.Model): formats = [] # files generated during publication if self.has_media("html"): - formats.append(u'%s' % (reverse('book_text', [self.fileid()]), _('Read online'))) + formats.append(u'%s' % (reverse('book_text', args=[self.fileid()]), _('Read online'))) if self.has_media("pdf"): formats.append(u'PDF' % self.get_media('pdf').url) if self.has_media("mobi"):