#NEWLINE# def detail( request , pk , slug = None , template = 'contacts/person/detail.html' ) : #NEWLINE# #INDENT# 'Detail of a person.\n\n    :param template: Add a custom template.\n    ' #NEWLINE# try : #NEWLINE# #INDENT# person = Person . objects . get ( pk__iexact = pk ) #NEWLINE# #UNINDENT# except Person . DoesNotExist : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# kwvars = { #NEWLINE# #INDENT# 'object' : person , #NEWLINE# #UNINDENT# } #NEWLINE# return render_to_response ( template , kwvars , RequestContext ( request ) )