#NEWLINE# @ moderator_required #NEWLINE# def delete( request , pk , remove = True ) : #NEWLINE# #INDENT# comment = get_object_or_404 ( Comment , pk = pk ) #NEWLINE# if ( request . method == 'POST' ) : #NEWLINE# #INDENT# Comment . objects . filter ( pk = pk ) . update ( is_removed = remove ) #NEWLINE# return redirect ( comment . get_absolute_url ( ) ) #NEWLINE# #UNINDENT# context = { #NEWLINE# #INDENT# 'comment' : comment , #NEWLINE# #UNINDENT# } #NEWLINE# return render ( request , 'spirit/comment/moderate.html' , context )