mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #5996 -- Add a pyscopg2 convertor for SafeUnicode -> unicode. Thanks, remco@diji.biz
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6816 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -48,4 +48,9 @@ u'Default headline'
|
||||
>>> d = now - a.pub_date
|
||||
>>> d.seconds < 5
|
||||
True
|
||||
|
||||
# make sure that SafeUnicode fields work
|
||||
>>> from django.utils.safestring import SafeUnicode
|
||||
>>> a.headline = SafeUnicode(u'SafeUnicode Headline')
|
||||
>>> a.save()
|
||||
"""}
|
||||
|
||||
Reference in New Issue
Block a user