Skip to content
Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 2890c22 commit 6d7754ba034ef9890b5b18c630c21e7252e664eb @kmtracey kmtracey committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/regressiontests/admin_views/
3 tests/regressiontests/admin_views/
@@ -61,7 +61,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 6d7754b

Please sign in to comment.
Something went wrong with that request. Please try again.