#NEWLINE# def get_object( self , request , **kwargs ) : #NEWLINE# #INDENT# if ( not hasattr ( request , 'instance' ) ) : #NEWLINE# #INDENT# queryset = self . get_queryset ( request , self . get_params ( request ) ) #NEWLINE# try : #NEWLINE# #INDENT# instance = queryset . get ( ** request ) #NEWLINE# #UNINDENT# except self . model . DoesNotExist : #NEWLINE# #INDENT# instance = None #NEWLINE# #UNINDENT# request . instance = instance #NEWLINE# #UNINDENT# return request . instance