@delegate_manager
    def partial_rebuild(self, tree_id):
        opts = self.model._mptt_meta

        qs = self._mptt_filter(parent=None, tree_id=tree_id)
        if opts.order_insertion_by:
            qs = qs.order_by(*opts.order_insertion_by)
        pks = qs.values_list('pk', flat=True)
        if not pks:
            return
        if len(pks) > 1:
            raise RuntimeError(
                "More than one root node with tree_id %d. That's invalid,"
                " do a full rebuild." % tree_id)

        self._rebuild_helper(pks[0], 1, tree_id)
Notify watchers of a release add/change
dataset/ETHPy150Open django-mptt/django-mptt/mptt/managers.py/TreeManager.partial_rebuild--crossover with--dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/addons/watches/handlers.py/_notify_releasewatchers