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...
1 parent f22418a commit 9797d51efe4038637318fc7399a8501be0e563d9 @jacobian jacobian committed Mar 23, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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''

0 comments on commit 9797d51

Please sign in to comment.