#NEWLINE# @ render_to ( 'blog/entry_detail.html' ) #NEWLINE# def entry_detail( request , entry_id , slug = None ) : #NEWLINE# #INDENT# if ( entry . user . is_staff or request . user . is_superuser ) : #NEWLINE# #INDENT# entries = Entry . objects . exclude ( status = Entry . HIDDEN_STATUS ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# entries = Entry . objects . filter ( status = Entry . PUBLISHED_STATUS ) #NEWLINE# #UNINDENT# entry = get_object_or_404 ( entries . select_related ( ) , pk = entry_id ) #NEWLINE# return { #NEWLINE# #INDENT# 'entry' : entry , #NEWLINE# #UNINDENT# }