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:
parent
2890c2295b
commit
6d7754ba03
|
@ -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?')
|
||||
|
|
Loading…
Reference in New Issue