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

def __getstate__(self):

    obj_dict = self.__dict__.copy()
    obj_dict.pop('_collection_obj')
    obj_dict['_cursor_obj'] = None
    return obj_dict
