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:
@@ -1,4 +1,5 @@
|
||||
from django.db import models
|
||||
from django.utils import six
|
||||
|
||||
|
||||
class Article(models.Model):
|
||||
@@ -22,7 +23,7 @@ class Count(models.Model):
|
||||
parent = models.ForeignKey('self', null=True)
|
||||
|
||||
def __unicode__(self):
|
||||
return unicode(self.num)
|
||||
return six.text_type(self.num)
|
||||
|
||||
class Event(models.Model):
|
||||
date = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
Reference in New Issue
Block a user