From 6d7754ba034ef9890b5b18c630c21e7252e664eb Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Tue, 2 Mar 2010 03:28:48 +0000 Subject: [PATCH] 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 --- tests/regressiontests/admin_views/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/regressiontests/admin_views/models.py b/tests/regressiontests/admin_views/models.py index d7b465152a6..dfdb18f0be9 100644 --- a/tests/regressiontests/admin_views/models.py +++ b/tests/regressiontests/admin_views/models.py @@ -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?')