From 9797d51efe4038637318fc7399a8501be0e563d9 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 23 Mar 2009 22:00:13 +0000 Subject: [PATCH] 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 --- django/template/defaulttags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 14f6532645..c08ecc435c 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -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''