0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

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: http://code.djangoproject.com/svn/django/trunk@10124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2009-03-23 22:00:13 +00:00
parent f22418a6be
commit 9797d51efe

View File

@ -74,7 +74,7 @@ class FirstOfNode(Node):
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''