Added a FIXME that I forgot to include earlier.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-04-04 13:25:53 +00:00
parent 5f2c513f9c
commit 56d56e5bac
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ def smart_unicode(s):
# The input is the result of a gettext_lazy() call, or similar. It will # The input is the result of a gettext_lazy() call, or similar. It will
# already be encoded in DEFAULT_CHARSET on evaluation and we don't want # already be encoded in DEFAULT_CHARSET on evaluation and we don't want
# to evaluate it until render time. # to evaluate it until render time.
# FIXME: This isn't totally consistent, because it eventually returns a
# bytestring rather than a unicode object. It works wherever we use
# smart_unicode() at the moment. Fixing this requires work in the
# i18n internals.
return s return s
if not isinstance(s, basestring,): if not isinstance(s, basestring,):
if hasattr(s, '__unicode__'): if hasattr(s, '__unicode__'):