diff gpp/forums/models.py @ 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 a5fcf3d1b663
children a46788862737
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):