def root_nodes(self):
        return self.filter(**{'%s__isnull' % self.parent_attr: True})
Creates a ``QuerySet`` containing root nodes.
dataset/ETHPy150Open agiliq/django-socialnews/socialnews/mptt/managers.py/TreeManager.root_nodes