1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Moved smart_unicode and StrAndUnicode to django.utils.encoding. They are useful

outside of newforms. This is backwards compatible as far as smart_unicode goes
(since newforms.util still imports it). All imports of smart_unicode and
StrAndUnicode have also been updated.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4918 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick
2007-04-04 06:34:19 +00:00
parent f791a598a8
commit 1bddac37b6
10 changed files with 41 additions and 40 deletions

View File

@@ -3276,7 +3276,7 @@ True
#################################
# smart_unicode tests
>>> from django.newforms.util import smart_unicode
>>> from django.utils.encoding import smart_unicode
>>> class Test:
... def __str__(self):
... return 'ŠĐĆŽćžšđ'