#NEWLINE# def get_services( self , request , pk = None ) : #NEWLINE# #INDENT# result = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for service in Service . objects . all ( ) : #NEWLINE# #INDENT# for id in service . get_vtn_src_ids ( ) : #NEWLINE# #INDENT# dependencies = service . get_vtn_dependencies_ids ( ) #NEWLINE# if dependencies : #NEWLINE# #INDENT# result [ id ] = pk #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return Response ( result )