#NEWLINE# def entry_detail( request , slug ) : #NEWLINE# #INDENT# if ( entry . 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# entry = get_object_or_404 ( entries . select_related ( ) , slug = slug ) #NEWLINE# return render_to_response ( 'blog/entry_detail.html' , { #NEWLINE# #INDENT# 'entry' : entry , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )