'Need for pickling queryset
See https://github.com/MongoEngine/mongoengine/issues/442'

def __setstate__(self, obj_dict):

    obj_dict['_collection_obj'] = obj_dict['_document']._get_collection()
    self.__dict__.update(obj_dict)
