Ticket #4495: 4495.diff
File 4495.diff, 1008 bytes (added by , 17 years ago) |
---|
-
django/template/defaulttags.py
4 4 from django.template import TemplateSyntaxError, VariableDoesNotExist, BLOCK_TAG_START, BLOCK_TAG_END, VARIABLE_TAG_START, VARIABLE_TAG_END, SINGLE_BRACE_START, SINGLE_BRACE_END, COMMENT_TAG_START, COMMENT_TAG_END 5 5 from django.template import get_library, Library, InvalidTemplateLibrary 6 6 from django.conf import settings 7 from django.utils.encoding import smart_str 7 from django.utils.encoding import smart_str, smart_unicode 8 8 import sys 9 9 10 10 register = Library() … … 58 58 except VariableDoesNotExist: 59 59 continue 60 60 if value: 61 return s tr(value)62 return ''61 return smart_unicode(value) 62 return u'' 63 63 64 64 class ForNode(Node): 65 65 def __init__(self, loopvar, sequence, reversed, nodelist_loop):