#NEWLINE# def insert_values( self , fields , objs , raw = False ) : #NEWLINE# #INDENT# "\n        Set up the insert query from the 'insert_values' dictionary. The\n        dictionary gives the model field names and their target values.\n\n        If 'raw_values' is True, the values in the 'insert_values' dictionary\n        are inserted directly into the query, rather than passed as SQL\n        parameters. This provides a way to insert NULL and DEFAULT keywords\n        into the query, for example.\n        " #NEWLINE# self . fields = fields #NEWLINE# for field in fields : #NEWLINE# #INDENT# for obj in objs : #NEWLINE# #INDENT# value = getattr ( obj , field . attname ) #NEWLINE# if isinstance ( obj , Promise ) : #NEWLINE# #INDENT# setattr ( obj , field . attname , force_unicode ( value ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . objs = objs #NEWLINE# self . raw = raw