mirror of
https://github.com/django/django.git
synced 2025-03-28 18:20:49 +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)
|
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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user