From: Radek Czajka Date: Wed, 24 Nov 2010 13:12:32 +0000 (+0100) Subject: typo X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/58a39e2d8614b5ec1d8ffc6ae5268fa94f555736?ds=sidebyside;hp=--cc typo --- 58a39e2d8614b5ec1d8ffc6ae5268fa94f555736 diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index fa6c13225..5b33dcc1a 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -355,9 +355,9 @@ class Book(models.Model): if self.has_media("txt"): formats.append(u'TXT' % self.get_media('txt').url) # other files - for m in self.media.order_by('type'): + for m in self.medias.order_by('type'): formats.append(u'%s' % m.type, m.file.url) - + formats = [mark_safe(format) for format in formats] setattr(self, key, unicode(render_to_string('catalogue/book_short.html',