X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/caafce88e26fef7f0cd5be751c1f0fa8bd0b5a06..ee93c1aed3616a880050bed082bcc0636d4ed92b:/models/base.py?ds=inline diff --git a/models/base.py b/models/base.py index 202c2f3..34e90dc 100644 --- a/models/base.py +++ b/models/base.py @@ -358,6 +358,8 @@ class TreeManager(models.Manager): if deepest_level == depth: # This should happen if nothing is found with any part of the given path. + if root is not None: + return root, build_path(segments) raise return find_obj(segments, depth, deepest_found)