Change blogs query object to list object by .all() function in blog_dashboard view.

This commit is contained in:
Aditi Mittal 2013-09-15 14:49:56 +05:30
parent a46c23e042
commit 0b7c64c8c8

View File

@ -234,6 +234,7 @@ def blog_dashboard(request, page):
'pagination':pagination
})
if not request.user or request.user.id != user.id or not blog_slug:
blogs = blogs.all()
return render_to_response(
request,
'mediagoblin/blog/list_of_blogs.html',