Fixed #1837 -- Gave FlatPage a str

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-05-11 14:38:27 +00:00
parent de3edb74c5
commit 412db6c929
1 changed files with 1 additions and 1 deletions

View File

@ -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):