dont show unpublished emailers
This commit is contained in:
parent
18291cd9ef
commit
ce8dfc6839
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user