From 9b89357747c200f19681d50a30a954451a09d27d Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 4 Jul 2007 06:05:45 +0000 Subject: [PATCH] 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 --- tests/modeltests/str/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/modeltests/str/models.py b/tests/modeltests/str/models.py index 2c16bf3305..7c63ec409d 100644 --- a/tests/modeltests/str/models.py +++ b/tests/modeltests/str/models.py @@ -22,7 +22,7 @@ class Article(models.Model): pub_date = models.DateTimeField() def __str__(self): - return smart_str(self.headline) + return self.headline class InternationalArticle(models.Model): headline = models.CharField(maxlength=100)