X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/90f3cd6c555c7e976016b1d0cdda1e68b098764a..7b8e0d73cd11dd7a4de5d8ffd028a740f345d572:/apps/catalogue/models.py
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}))