:param root: Only return the path since this object.
:param pathsep: The path separator to use when constructing an instance's path
:param field: The field to pull path information from for each ancestor.
"""
:param root: Only return the path since this object.
:param pathsep: The path separator to use when constructing an instance's path
:param field: The field to pull path information from for each ancestor.
+ :param memoize: Whether to use memoized results. Since, in most cases, the ancestors of a TreeEntity will not change over the course of an instance's lifetime, this defaults to ``True``.
:returns: A string representation of an object's path.
"""
:returns: A string representation of an object's path.
"""
@@ -476,12+477,26 @@ class TreeEntity(Entity, MPTTModel):
if root is not None and not self.is_descendant_of(root):
raise AncestorDoesNotExist(root)
if root is not None and not self.is_descendant_of(root):