mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.core import management
|
||||
@@ -195,7 +195,7 @@ class ProxyModelTests(TestCase):
|
||||
signals.pre_save.connect(h3, sender=Person)
|
||||
signals.post_save.connect(h4, sender=Person)
|
||||
|
||||
dino = MyPerson.objects.create(name=u"dino")
|
||||
dino = MyPerson.objects.create(name="dino")
|
||||
self.assertEqual(output, [
|
||||
'MyPerson pre save',
|
||||
'MyPerson post save'
|
||||
@@ -209,7 +209,7 @@ class ProxyModelTests(TestCase):
|
||||
signals.pre_save.connect(h5, sender=MyPersonProxy)
|
||||
signals.post_save.connect(h6, sender=MyPersonProxy)
|
||||
|
||||
dino = MyPersonProxy.objects.create(name=u"pebbles")
|
||||
dino = MyPersonProxy.objects.create(name="pebbles")
|
||||
|
||||
self.assertEqual(output, [
|
||||
'MyPersonProxy pre save',
|
||||
|
||||
Reference in New Issue
Block a user