'Unpickling support.'

def __setstate__(self, obj_dict):

    opts = obj_dict['model']._meta
    obj_dict['select_fields'] = [(((name is not None) and opts.get_field(name)) or None) for name in obj_dict['select_fields']]
    self.__dict__.update(obj_dict)
