Skip to content

Commit d0b627a

Browse files
committed
Added a test that shows the problem in #4470. This fails only for the mysql_old
backend. Refs #4470. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5617 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent d2c45ba commit d0b627a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/modeltests/basic/models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,4 +365,10 @@ def __unicode__(self):
365365
>>> a12 = Article.objects.create(headline='Article 12', pub_date=datetime(2008, 12, 31, 23, 59, 59, 999999))
366366
>>> Article.objects.filter(pub_date__year=2008)
367367
[<Article: Article 11>, <Article: Article 12>]
368+
369+
# Unicode data works, too.
370+
>>> a = Article(headline=u'\u6797\u539f \u3081\u3050\u307f', pub_date=datetime(2005, 7, 28))
371+
>>> a.save()
372+
>>> Article.objects.get(pk=a.id).headline
373+
u'\u6797\u539f \u3081\u3050\u307f'
368374
"""

0 commit comments

Comments
 (0)