Ticket #14057: 14057-context-parameter.diff
File 14057-context-parameter.diff, 611 bytes (added by , 14 years ago) |
---|
-
django/template/__init__.py
828 828 value = localize(value, use_l10n=context.use_l10n) 829 829 value = force_unicode(value) 830 830 if (context.autoescape and not isinstance(value, SafeData)) or isinstance(value, EscapeData): 831 return escape(value) 831 if callable(context.autoescape): 832 return context.autoescape(value) 833 else: 834 return escape(value) 832 835 else: 833 836 return value 834 837