Kaydet (Commit) 607665a3 authored tarafından Claude Paroz's avatar Claude Paroz

[py3] Fixed bad unicode test

üst 0ab57021
...@@ -63,9 +63,8 @@ class BrokenUnicodeMethod(models.Model): ...@@ -63,9 +63,8 @@ class BrokenUnicodeMethod(models.Model):
name = models.CharField(max_length=7) name = models.CharField(max_length=7)
def __str__(self): def __str__(self):
# Intentionally broken (trying to insert a unicode value into a str # Intentionally broken (invalid start byte in byte string).
# object). return b'Name\xff: %s'.decode() % self.name
return 'Názov: %s' % self.name
class NonAutoPK(models.Model): class NonAutoPK(models.Model):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment