git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Refactored Node.get_absolute_url and related functions (such as MultiView.reverse...
[philo.git]
/
middleware.py
diff --git
a/middleware.py
b/middleware.py
index
ad660ec
..
832bd16
100644
(file)
--- 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