#NEWLINE# def get_resource_uri( self , item ) : #NEWLINE# #INDENT# '\n        Returns resource URI for bundle or object.\n        ' #NEWLINE# if isinstance ( pk , Bundle ) : #NEWLINE# #INDENT# pk = item . obj . _id #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pk = item . _id #NEWLINE# #UNINDENT# return reverse ( 'api_dispatch_detail' , kwargs = { #NEWLINE# #INDENT# 'resource_name' : self . _meta . resource_name , #NEWLINE# 'api_name' : self . _meta . api_name , #NEWLINE# 'pk' : pk , #NEWLINE# #UNINDENT# } )