[py3] Fixed bad unicode test

This commit is contained in:
Claude Paroz 2012-08-15 14:00:04 +02:00
parent 0ab570217a
commit 607665a396
1 changed files with 2 additions and 3 deletions

View File

@ -63,9 +63,8 @@ class BrokenUnicodeMethod(models.Model):
name = models.CharField(max_length=7)
def __str__(self):
# Intentionally broken (trying to insert a unicode value into a str
# object).
return 'Názov: %s' % self.name
# Intentionally broken (invalid start byte in byte string).
return b'Name\xff: %s'.decode() % self.name
class NonAutoPK(models.Model):