mirror of
https://github.com/django/django.git
synced 2025-02-23 16:06:26 +00:00
[py3] Fixed bad unicode test
This commit is contained in:
parent
0ab570217a
commit
607665a396
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user