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:
@@ -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 'ŠĐĆŽćžšđ'
|
||||
|
||||
Reference in New Issue
Block a user