git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into develop
[philo.git]
/
philo
/
views.py
diff --git
a/philo/views.py
b/philo/views.py
index
d3054b9
..
2c2a952
100644
(file)
--- a/
philo/views.py
+++ b/
philo/views.py
@@
-37,10
+37,10
@@
def node_view(request, path=None, **kwargs):
raise Http404
node = request.node
raise Http404
node = request.node
- subpath = request.node.subpath
+ subpath = request.node.
_
subpath
# Explicitly disallow trailing slashes if we are otherwise at a node's url.
# Explicitly disallow trailing slashes if we are otherwise at a node's url.
- if
request._cached_node_path != "/" and request._cached_node
_path[-1] == "/" and subpath == "/":
+ if
node._path != "/" and node.
_path[-1] == "/" and subpath == "/":
return HttpResponseRedirect(node.get_absolute_url())
if not node.handles_subpath(subpath):
return HttpResponseRedirect(node.get_absolute_url())
if not node.handles_subpath(subpath):