1
0
mirror of https://github.com/django/django.git synced 2024-12-23 09:36:06 +00:00

Merge pull request #544 from strongriley/master

Fixed typo in django.template.defaulttags
This commit is contained in:
Tim Graham 2012-11-20 02:02:54 -08:00
commit 6cb4233aa2

View File

@ -401,7 +401,7 @@ class URLNode(Node):
# 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,
# 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 = ''
try:
url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app)