mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +00:00
unicode: Changed one Model.__str__ test to verify that old-style code still
works with pure ASCII data. git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5602 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c4b260a4b6
commit
9b89357747
@ -22,7 +22,7 @@ class Article(models.Model):
|
|||||||
pub_date = models.DateTimeField()
|
pub_date = models.DateTimeField()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return smart_str(self.headline)
|
return self.headline
|
||||||
|
|
||||||
class InternationalArticle(models.Model):
|
class InternationalArticle(models.Model):
|
||||||
headline = models.CharField(maxlength=100)
|
headline = models.CharField(maxlength=100)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user