From 929f89d521e88b6c3657d3d98f731beca52c6357 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Thu, 18 Sep 2008 17:02:31 +0200 Subject: [PATCH] Added "Plik TXT" to shortcuts in book_short.html. --- apps/catalogue/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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})) -- 2.20.1