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