Browse files

Added to the things ignored by strings_only in [6406].

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d1efe9b commit b7687fae2d04c3cee88b0c707f9f2c2176e3f515 @malcolmt malcolmt committed Oct 20, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/utils/
2 django/utils/
@@ -31,7 +31,7 @@ def force_unicode(s, encoding='utf-8', strings_only=False, errors='strict'):
If strings_only is True, don't convert (some) non-string-like objects.
- if strings_only and isinstance(s, (types.NoneType, int, long, datetime.datetime, datetime.time, float)):
+ if strings_only and isinstance(s, (types.NoneType, int, long, datetime.datetime,, datetime.time, float)):
return s
if not isinstance(s, basestring,):
if hasattr(s, '__unicode__'):

0 comments on commit b7687fa

Please sign in to comment.