def is_root_node(self):
        return getattr(self, self._mptt_meta.parent_attr + '_id') is None
Returns ``True`` if this model instance is a root node,
dataset/ETHPy150Open django-mptt/django-mptt/mptt/models.py/MPTTModel.is_root_node