git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor correction to NavigationManager caching.
[philo.git]
/
templatetags
/
nodes.py
diff --git
a/templatetags/nodes.py
b/templatetags/nodes.py
index
9721ec4
..
73492d4
100644
(file)
--- a/
templatetags/nodes.py
+++ b/
templatetags/nodes.py
@@
-51,7
+51,9
@@
class NodeURLNode(template.Node):
subpath = reverse(view_name, urlconf=node.view, args=args, kwargs=kwargs)
except NoReverseMatch:
if self.as_var is None:
subpath = reverse(view_name, urlconf=node.view, args=args, kwargs=kwargs)
except NoReverseMatch:
if self.as_var is None:
- raise
+ if settings.TEMPLATE_DEBUG:
+ raise
+ return settings.TEMPLATE_STRING_IF_INVALID
else:
if subpath[0] == '/':
subpath = subpath[1:]
else:
if subpath[0] == '/':
subpath = subpath[1:]