> articles = [article for article in
> Article.objects.all().select_related('permission') if
> article.permission.can_view_article(request.user)]

The only problem I see is that is that 'articles' is a list, not a
queryset.  The reason I was using q.exclude(pk=item.pk) is because the
return value is still a queryset.  But that's going to result in a
huge number of DB hits....curses.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to