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:
parent
de3edb74c5
commit
412db6c929
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue