#NEWLINE# @ login_required #NEWLINE# def delete_screenshot( request , project_url_path , screenshot_id ) : #NEWLINE# #INDENT# project = get_object_or_404 ( Project , url_path = project_url_path ) #NEWLINE# if ( request . user not in project . authors . all ( ) ) : #NEWLINE# #INDENT# return HttpResponseRedirect ( reverse ( show , args = ( project . url_path , ) ) ) #NEWLINE# #UNINDENT# screenshot = get_object_or_404 ( Screenshot , id = screenshot_id ) #NEWLINE# screenshot . delete ( ) #NEWLINE# return HttpResponseRedirect ( reverse ( modify , args = ( request . url_path , 4 ) ) )