#NEWLINE# def blog_home( request ) : #NEWLINE# #INDENT# if ( request . user . is_staff or request . user . is_superuser ) : #NEWLINE# #INDENT# entries = Entry . objects . exclude ( status = Entry . DRAFT_STATUS ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# entries = Entry . objects . filter ( status = Entry . PUBLISHED_STATUS ) #NEWLINE# #UNINDENT# return render_to_response ( 'blog/home.html' , { #NEWLINE# #INDENT# 'entry_list' : request , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )