- 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(**{'%s__gt' % self._mptt_meta.level_attr: root.get_level()})
+
+ return pathsep.join([getattr(parent, field, '?') for parent in list(qs) + [self]])