Ticket #3753: template-invalid-varname.diff
File template-invalid-varname.diff, 629 bytes (added by , 18 years ago) |
---|
-
django/template/__init__.py
566 566 obj = None 567 567 else: 568 568 if settings.TEMPLATE_STRING_IF_INVALID: 569 if settings.TEMPLATE_STRING_IF_INVALID.count('%s') == 1: 570 return settings.TEMPLATE_STRING_IF_INVALID % self.var 569 571 return settings.TEMPLATE_STRING_IF_INVALID 570 572 else: 571 573 obj = settings.TEMPLATE_STRING_IF_INVALID