# HG changeset patch # User Brian Neal # Date 1276140717 0 # Node ID 405468b8e3b9acedb34da8c990ddc8180fb5248c # Parent 7fdfc9b3c71ac7e3de70ba7b25f26a35227d9bf1 For #51; change verbose_name & verbose_name_plural so that the Haystack model search form has reasonable labels. diff -r 7fdfc9b3c71a -r 405468b8e3b9 gpp/forums/models.py --- 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): diff -r 7fdfc9b3c71a -r 405468b8e3b9 gpp/news/models.py --- 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() diff -r 7fdfc9b3c71a -r 405468b8e3b9 gpp/podcast/models.py --- 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)