Author: jacob Date: 2009-03-23 17:00:13 -0500 (Mon, 23 Mar 2009) New Revision: 10124
Modified: django/trunk/django/template/defaulttags.py Log: Fixed an error in the `firstof` template tag when used with `TEMPLATE_STRING_IF_INVALID`. Thanks to Alex Gaynor for the patch. Modified: django/trunk/django/template/defaulttags.py =================================================================== --- django/trunk/django/template/defaulttags.py 2009-03-23 21:22:31 UTC (rev 10123) +++ django/trunk/django/template/defaulttags.py 2009-03-23 22:00:13 UTC (rev 10124) @@ -74,7 +74,7 @@ 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'' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---