Ticket #5980: filterexperssion_quote_escaping.diff
File filterexperssion_quote_escaping.diff, 813 bytes (added by , 17 years ago) |
---|
-
django/template/__init__.py
547 557 if var == None: 548 558 var, constant, i18n_constant = match.group("var", "constant", "i18n_constant") 549 559 if i18n_constant: 550 var = '"%s"' % _(i18n_constant)560 var = "'%s'" % _(i18n_constant.replace(r'\"', '"')) 551 561 elif constant: 552 var = '"%s"' % constant562 var = "'%s'" % constant.replace(r'\"', '"') 553 563 upto = match.end() 554 564 if var == None: 555 565 raise TemplateSyntaxError, "Could not find variable at start of %s" % token