'Attach fields to fake instance.'

def _attach_fields(self, obj, data, field_names):

    for field_name in field_names:
        value = data.get(field_name)
        if (field_name in self.datetime_fields):
            value = self.to_datetime(value)
        setattr(obj, field_name, value)
    return obj
