#NEWLINE# def _preprocess_kwargs( self , initial_kwargs ) : #NEWLINE# #INDENT# ' Replace generic key related attribute with filters by object_id and content_type fields ' #NEWLINE# kwargs = initial_kwargs . copy ( ) #NEWLINE# generic_key_related_kwargs = self . _get_generic_key_related_kwargs ( initial_kwargs ) #NEWLINE# for ( key , value ) in generic_key_related_kwargs . items ( ) : #NEWLINE# #INDENT# del kwargs [ key ] #NEWLINE# try : #NEWLINE# #INDENT# suffix = key . split ( '__' ) [ 1 ] #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# suffix = None #NEWLINE# #UNINDENT# new_kwargs = self . _get_filter_object_id_and_content_type_filter_kwargs ( value , suffix ) #NEWLINE# kwargs . update ( new_kwargs ) #NEWLINE# #UNINDENT# return kwargs