From: Marek Stępniowski Date: Thu, 18 Sep 2008 15:02:31 +0000 (+0200) Subject: Added "Plik TXT" to shortcuts in book_short.html. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/929f89d521e88b6c3657d3d98f731beca52c6357 Added "Plik TXT" to shortcuts in book_short.html. --- diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index 30131bdbf..9640e7fd2 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -111,8 +111,8 @@ class Book(models.Model): formats.append(u'Plik PDF' % self.pdf_file.url) if self.odt_file: formats.append(u'Plik ODT' % self.odt_file.url) - if self.odt_file: - formats. + if self.txt_file: + formats.append(u'Plik TXT' % self.txt_file.url) self._short_html = unicode(render_to_string('catalogue/book_short.html', {'book': self, 'tags': tags, 'formats': formats}))