#NEWLINE# def _values( self , * fields ) : #NEWLINE# #INDENT# clone = self . _clone ( ) #NEWLINE# clone . _fields = fields #NEWLINE# query = clone . query #NEWLINE# query . select_related = False #NEWLINE# query . clear_deferred_loading ( ) #NEWLINE# query . clear_select_fields ( ) #NEWLINE# if ( query . group_by is True ) : #NEWLINE# #INDENT# query . add_fields ( ( f . attname for f in self . model . _meta . concrete_fields ) , False ) #NEWLINE# query . set_group_by ( ) #NEWLINE# query . clear_select_fields ( ) #NEWLINE# #UNINDENT# if fields : #NEWLINE# #INDENT# field_names = [ ] #NEWLINE# extra_names = [ ] #NEWLINE# annotation_names = [ ] #NEWLINE# if ( ( not query . _extra ) and ( not query . _annotations ) ) : #NEWLINE# #INDENT# field_names = list ( fields ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# query . default_cols = False #NEWLINE# for f in fields : #NEWLINE# #INDENT# if ( f in query . extra_select ) : #NEWLINE# #INDENT# extra_names . append ( f ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( f in query . annotation_select ) : #NEWLINE# #INDENT# annotation_names . append ( f ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# field_names . append ( f ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# query . set_extra_mask ( extra_names ) #NEWLINE# query . set_annotation_mask ( query ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# field_names = [ f . attname for f in self . model . _meta . concrete_fields ] #NEWLINE# #UNINDENT# query . values_select = field_names #NEWLINE# query . add_fields ( field_names , True ) #NEWLINE# return clone