X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/8d3b1128e7925825332eafc7d269cf34e1af170c..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)