mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[py3] Replaced unicode/str by six.text_type/bytes.
This commit is contained in:
@@ -6,6 +6,7 @@ from __future__ import unicode_literals
|
||||
import threading
|
||||
|
||||
from django.db import models
|
||||
from django.utils import six
|
||||
|
||||
|
||||
class DumbCategory(models.Model):
|
||||
@@ -122,7 +123,7 @@ class Number(models.Model):
|
||||
num = models.IntegerField()
|
||||
|
||||
def __unicode__(self):
|
||||
return unicode(self.num)
|
||||
return six.text_type(self.num)
|
||||
|
||||
# Symmetrical m2m field with a normal field using the reverse accesor name
|
||||
# ("valid").
|
||||
|
||||
Reference in New Issue
Block a user