Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed an error in the `firstof` template tag when used with `TEMPLATE…

…_STRING_IF_INVALID`. Thanks to Alex Gaynor for the patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9797d51efe4038637318fc7399a8501be0e563d9 1 parent f22418a
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/template/
2  django/template/
@@ -74,7 +74,7 @@ def __init__(self, vars):
def render(self, context):
for var in self.vars:
- value = var.resolve(context)
+ value = var.resolve(context, True)
if value:
return smart_unicode(value)
return u''
Please sign in to comment.
Something went wrong with that request. Please try again.