Fixed #11710: Made a small test change to ensure utf-8 bytestrings in

verbose_names don't cause a server error when the admin change log message is
built. The necessary code fix was made for #12966 in r12627.  Thanks Rupe.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@12650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey 2010-03-02 03:28:48 +00:00
parent 2890c2295b
commit 6d7754ba03
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ class Chapter(models.Model):
return self.title
class Meta:
verbose_name = u'¿Chapter?'
# Use a utf-8 bytestring to ensure it works (see #11710)
verbose_name = '¿Chapter?'
class ChapterXtra1(models.Model):
chap = models.OneToOneField(Chapter, verbose_name=u'¿Chap?')