- return pathsep.join([getattr(parent, field, '?') for parent in list(self.get_ancestors()) + [self]])
+ qs = self.get_ancestors()
+
+ if root is not None:
+ qs = qs.filter(level__gt=root.level)
+
+ return pathsep.join([getattr(parent, field, '?') for parent in list(qs) + [self]])