'Set up the insert query from the \'insert_values\' dictionary. The
dictionary gives the model field names and their target values.
If \'raw_values\' is True, the values in the \'insert_values\' dictionary
are inserted directly into the query, rather than passed as SQL
parameters. This provides a way to insert NULL and DEFAULT keywords
into the query, for example.'

def insert_values(self, fields, objs, raw=False):

    self.fields = fields
    for field in fields:
        for obj in objs:
            value = getattr(obj, field.attname)
            if isinstance(value, Promise):
                setattr(obj, field.attname, force_text(value))
    self.objs = objs
    self.raw = raw
