summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-05-11 14:38:27 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-05-11 14:38:27 +0000
commit412db6c929ea8a66ded466bc879159b7de1452b0 (patch)
tree6879e05c9590e4784d28229edbb3bc068c16ac51
parentde3edb74c58b1d2db6e65c7eeb185e96f9880b1f (diff)
Fixed #1837 -- Gave FlatPage a str
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/flatpages/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/flatpages/models.py b/django/contrib/flatpages/models.py
index a60a536923..733706257c 100644
--- a/django/contrib/flatpages/models.py
+++ b/django/contrib/flatpages/models.py
@@ -26,7 +26,7 @@ class FlatPage(models.Model):
list_filter = ('sites',)
search_fields = ('url', 'title')
- def __repr__(self):
+ def __str__(self):
return "%s -- %s" % (self.url, self.title)
def get_absolute_url(self):