#NEWLINE# def ticket_dependency_del( request , ticket_id , dependency_id ) : #NEWLINE# #INDENT# dependency = get_object_or_404 ( TicketDependency , ticket__id = ticket_id , id = dependency_id ) #NEWLINE# if ( request . method == 'POST' ) : #NEWLINE# #INDENT# dependency . delete ( ) #NEWLINE# return HttpResponseRedirect ( reverse ( 'helpdesk_view' , args = [ ticket_id ] ) ) #NEWLINE# #UNINDENT# return render_to_response ( 'helpdesk/ticket_dependency_del.html' , RequestContext ( request , { #NEWLINE# #INDENT# 'dependency' : dependency , #NEWLINE# #UNINDENT# } ) )