#NEWLINE# def _clone( self , **kwargs ) : #NEWLINE# #INDENT# query = self . query . clone ( ) #NEWLINE# if self . _sticky_filter : #NEWLINE# #INDENT# query . filter_is_sticky = True #NEWLINE# #UNINDENT# clone = self . __class__ ( model = self . model , query = query , using = self . _db , hints = self . _hints ) #NEWLINE# clone . _for_write = self . _for_write #NEWLINE# clone . _prefetch_related_lookups = self . _prefetch_related_lookups [ : ] #NEWLINE# clone . _known_related_objects = self . _known_related_objects #NEWLINE# clone . _iterable_class = self . _iterable_class #NEWLINE# clone . _fields = self . _fields #NEWLINE# clone . __dict__ . update ( query ) #NEWLINE# return clone