Django

Code

Changeset 5617

Show
Ignore:
Timestamp:
07/05/07 05:27:22 (1 year ago)
Author:
mtredinnick
Message:

Added a test that shows the problem in #4470. This fails only for the mysql_old
backend. Refs #4470.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/basic/models.py

    r5609 r5617  
    366366>>> Article.objects.filter(pub_date__year=2008) 
    367367[<Article: Article 11>, <Article: Article 12>] 
    368 """ 
     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 
     373u'\u6797\u539f \u3081\u3050\u307f' 
     374"""