summaryrefslogtreecommitdiff
path: root/tests/modeltests/custom_methods/models.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-07-07 13:23:57 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-07-07 13:23:57 +0000
commit1e747f98af99a23c5aff7b460d5b845c3a9e2013 (patch)
tree6347c27684a68cf1ef76b92808aa9309b0688797 /tests/modeltests/custom_methods/models.py
parent7ed1a919681b5b028c3f6eef1a862ff91b66feb2 (diff)
newforms-admin: Merged from trunk up to [5625]. This includes the Unicode
merge, however, not all of admin/ (and none of admindocs/) has been ported and checked yet. git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@5627 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/custom_methods/models.py')
-rw-r--r--tests/modeltests/custom_methods/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeltests/custom_methods/models.py b/tests/modeltests/custom_methods/models.py
index e8fb751d54..5a6581805a 100644
--- a/tests/modeltests/custom_methods/models.py
+++ b/tests/modeltests/custom_methods/models.py
@@ -11,7 +11,7 @@ class Article(models.Model):
headline = models.CharField(maxlength=100)
pub_date = models.DateField()
- def __str__(self):
+ def __unicode__(self):
return self.headline
def was_published_today(self):