From 60070fc9b0d0d5516a949eda83a11c5c5d26a6d9 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 18 Jan 2012 16:50:48 +0530 Subject: [PATCH] silly --- itf/emailer/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/emailer/models.py b/itf/emailer/models.py index dde05c8..a147da2 100755 --- a/itf/emailer/models.py +++ b/itf/emailer/models.py @@ -57,7 +57,7 @@ class EmailerArticle(models.Model): def getImageHTML(self, short_name): img = ArticleImage.objects.filter(article=self).filter(short_name=short_name) if len(img) > 0: - return img.getHTML() + return img[0].getHTML() else: return ''