From ce8dfc68390d58d2863738737c4de874838d4eef Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 13 Jan 2012 14:49:19 +0530 Subject: [PATCH] dont show unpublished emailers --- itf/emailer/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/itf/emailer/models.py b/itf/emailer/models.py index f953754..952484f 100755 --- a/itf/emailer/models.py +++ b/itf/emailer/models.py @@ -33,6 +33,10 @@ class EmailerIssue(ItfModel): return article.main_image return None + @classmethod + def get_qset(kls): + return kls.objects.filter(published=True) + class EmailerArticle(models.Model): issue = models.ForeignKey(EmailerIssue) title = models.CharField(max_length=512)