#NEWLINE# def get_object( self , view_name , view_args , view_kwargs ) : #NEWLINE# #INDENT# lookup_value = view_kwargs [ self . lookup_url_kwarg ] #NEWLINE# parent_lookup_value = view_kwargs [ self . parent_lookup_url_kwarg ] #NEWLINE# lookup_kwargs = { #NEWLINE# #INDENT# self . lookup_field : lookup_value , #NEWLINE# self . parent_lookup_field : parent_lookup_value , #NEWLINE# #UNINDENT# } #NEWLINE# return self . get_queryset ( ) . get ( ** lookup_kwargs )