Mercurial > public > sg101
changeset 226:405468b8e3b9
For #51; change verbose_name & verbose_name_plural so that the Haystack model search form has reasonable labels.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 10 Jun 2010 03:31:57 +0000 |
parents | 7fdfc9b3c71a |
children | 423c39ee44e0 |
files | gpp/forums/models.py gpp/news/models.py gpp/podcast/models.py |
diffstat | 3 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/forums/models.py Tue Jun 08 03:22:26 2010 +0000 +++ b/gpp/forums/models.py Thu Jun 10 03:31:57 2010 +0000 @@ -250,6 +250,8 @@ class Meta: ordering = ('creation_date', ) get_latest_by = 'creation_date' + verbose_name = 'forum post' + verbose_name_plural = 'forum posts' @models.permalink def get_absolute_url(self):
--- a/gpp/news/models.py Tue Jun 08 03:22:26 2010 +0000 +++ b/gpp/news/models.py Thu Jun 10 03:31:57 2010 +0000 @@ -69,7 +69,8 @@ class Meta: ordering = ('-date_submitted', ) - verbose_name_plural = 'Stories' + verbose_name = 'news story' + verbose_name_plural = 'news stories' def can_comment_on(self): now = datetime.datetime.now()
--- a/gpp/podcast/models.py Tue Jun 08 03:22:26 2010 +0000 +++ b/gpp/podcast/models.py Thu Jun 10 03:31:57 2010 +0000 @@ -56,6 +56,8 @@ class Meta: ordering = ('-pubdate', ) + verbose_name = 'podcast' + verbose_name_plural = 'podcasts' def search_title(self): return "%s: %s" % (self.title, self.subtitle)