Browse files

[1.1.X] Fixed #11710: Made a small test change to ensure utf-8 bytest…

…rings 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.

r12650 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 08a698e commit 69fb5c25bdabd6f693bca64bcf0dfeeb9659bddf @kmtracey kmtracey committed Mar 2, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/regressiontests/admin_views/
@@ -60,7 +60,8 @@ def __unicode__(self):
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?')

0 comments on commit 69fb5c2

Please sign in to comment.