X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/1c81f61d4e574d439ed2dbfefd599f04b5e2bef9..dbb5ab771be406d90ac522e0ecd644e5ddb21e6f:/middleware.py?ds=inline diff --git a/middleware.py b/middleware.py index ad660ec..832bd16 100644 --- a/middleware.py +++ b/middleware.py @@ -20,6 +20,10 @@ class LazyNode(object): except Node.DoesNotExist: node = None + if subpath is None: + subpath = "" + subpath = "/" + subpath + if node: node.subpath = subpath