Skip to content

Commit

Permalink
unicode: Changed one Model.__str__ test to verify that old-style code…
Browse files Browse the repository at this point in the history
… still

works with pure ASCII data.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5602 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Jul 4, 2007
1 parent c4b260a commit 9b89357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/modeltests/str/models.py
Expand Up @@ -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)
Expand Down

0 comments on commit 9b89357

Please sign in to comment.