def is_leaf_node(self):
    return not self.get_descendant_count()
Returns ``True`` if this model instance is a leaf node (it has no
dataset/ETHPy150Open agiliq/django-socialnews/socialnews/mptt/models.py/is_leaf_node