Permalink
Browse files

draft blog posts show up for staff

  • Loading branch information...
1 parent be411cc commit 41b62283617482656091d715bcd34d77d4976c83 @oppianmatt oppianmatt committed Nov 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/basic/blog/views.py
@@ -12,7 +12,7 @@
def post_list(request, template_name = 'blog/post_list.html', page=0, **kwargs):
return list_detail.object_list(
request,
- queryset = Post.objects.published().filter(categories__slug='blog'),
+ queryset = Post.objects.published(request.user).filter(categories__slug='blog'),
template_name = template_name,
paginate_by = 20,
page = page,

0 comments on commit 41b6228

Please sign in to comment.