From 53f7781c16a20c63495ff490b216c64c66efa38c Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 10 Jul 2011 05:14:42 +0530 Subject: [PATCH] fixed get_published_list method --- edgware/editor/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edgware/editor/models.py b/edgware/editor/models.py index d8f293a..247d4f2 100644 --- a/edgware/editor/models.py +++ b/edgware/editor/models.py @@ -260,7 +260,7 @@ class Article(models.Model): def get_published_list(kls, user, qset=False): if not qset: qset = kls.objects.all() - return qset.filter(published=True).exclude(Q(owner=user) | Q(users=user)).exclude(name__istartswith="template") + return qset.filter(published=True).exclude(owner=user).exclude(users=user).exclude(name__istartswith="template") @classmethod def get_template_list(kls):