From 58a39e2d8614b5ec1d8ffc6ae5268fa94f555736 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 24 Nov 2010 14:12:32 +0100 Subject: [PATCH 1/1] typo --- 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 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', -- 2.20.1