mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
[py3] Replaced unicode/str by six.text_type/bytes.
This commit is contained in:
parent
3cb2457f46
commit
bdca5ea345
96 changed files with 376 additions and 294 deletions
|
@ -3,6 +3,7 @@ from __future__ import absolute_import, unicode_literals
|
|||
from django.core.exceptions import FieldError
|
||||
from django.db.models import F
|
||||
from django.test import TestCase
|
||||
from django.utils import six
|
||||
|
||||
from .models import Company, Employee
|
||||
|
||||
|
@ -156,7 +157,7 @@ class ExpressionsTests(TestCase):
|
|||
"Frank Meyer",
|
||||
"Max Mustermann",
|
||||
],
|
||||
lambda c: unicode(c.point_of_contact),
|
||||
lambda c: six.text_type(c.point_of_contact),
|
||||
)
|
||||
|
||||
c = Company.objects.all()[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue