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