dont show unpublished emailers

This commit is contained in:
Sanj 2012-01-13 14:49:19 +05:30
parent 18291cd9ef
commit ce8dfc6839

View File

@ -33,6 +33,10 @@ class EmailerIssue(ItfModel):
return article.main_image return article.main_image
return None return None
@classmethod
def get_qset(kls):
return kls.objects.filter(published=True)
class EmailerArticle(models.Model): class EmailerArticle(models.Model):
issue = models.ForeignKey(EmailerIssue) issue = models.ForeignKey(EmailerIssue)
title = models.CharField(max_length=512) title = models.CharField(max_length=512)