Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #1837 -- Gave FlatPage a str

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 412db6c929ea8a66ded466bc879159b7de1452b0 1 parent de3edb7
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/flatpages/models.py
View
2  django/contrib/flatpages/models.py
@@ -26,7 +26,7 @@ class Admin:
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):
Please sign in to comment.
Something went wrong with that request. Please try again.