summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-07-04 06:05:45 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-07-04 06:05:45 +0000
commit9b89357747c200f19681d50a30a954451a09d27d (patch)
treeb87207dcd8b8347df945da354ab040ae1e0d0359
parentc4b260a4b6303bea20d7f511fa832a1c122c02c0 (diff)
downloaddjango-9b89357747c200f19681d50a30a954451a09d27d.tar.gz
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
-rw-r--r--tests/modeltests/str/models.py2
1 files changed, 1 insertions, 1 deletions
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)