From 412db6c929ea8a66ded466bc879159b7de1452b0 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 11 May 2006 14:38:27 +0000 Subject: [PATCH] Fixed #1837 -- Gave FlatPage a str git-svn-id: http://code.djangoproject.com/svn/django/trunk@2894 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/flatpages/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/flatpages/models.py b/django/contrib/flatpages/models.py index a60a536923c..733706257c0 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):