Skip to content

Commit

Permalink
[1.5.X] Fixed typo in django.template.defaulttags
Browse files Browse the repository at this point in the history
Backport of d179794 from master
  • Loading branch information
strongriley authored and timgraham committed Nov 20, 2012
1 parent 3a0e023 commit e56c8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/template/defaulttags.py
Expand Up @@ -401,7 +401,7 @@ def render(self, context):
# 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)
Expand Down

0 comments on commit e56c8d7

Please sign in to comment.