mirror of https://github.com/django/django.git
[1.5.X] Fixed typo in django.template.defaulttags
Backport of d179794c6b
from master
This commit is contained in:
parent
3a0e0230f7
commit
e56c8d7e0a
|
@ -401,7 +401,7 @@ class URLNode(Node):
|
||||||
# Try to look up the URL twice: once given the view name, and again
|
# Try to look up the URL twice: once given the view name, and again
|
||||||
# relative to what we guess is the "main" app. If they both fail,
|
# relative to what we guess is the "main" app. If they both fail,
|
||||||
# re-raise the NoReverseMatch unless we're using the
|
# re-raise the NoReverseMatch unless we're using the
|
||||||
# {% url ... as var %} construct in which cause return nothing.
|
# {% url ... as var %} construct in which case return nothing.
|
||||||
url = ''
|
url = ''
|
||||||
try:
|
try:
|
||||||
url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app)
|
url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app)
|
||||||
|
|
Loading…
Reference in New Issue