comparison 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
comparison
equal deleted inserted replaced
225:7fdfc9b3c71a 226:405468b8e3b9
248 user_ip = models.IPAddressField(blank=True, default='', null=True) 248 user_ip = models.IPAddressField(blank=True, default='', null=True)
249 249
250 class Meta: 250 class Meta:
251 ordering = ('creation_date', ) 251 ordering = ('creation_date', )
252 get_latest_by = 'creation_date' 252 get_latest_by = 'creation_date'
253 verbose_name = 'forum post'
254 verbose_name_plural = 'forum posts'
253 255
254 @models.permalink 256 @models.permalink
255 def get_absolute_url(self): 257 def get_absolute_url(self):
256 return ('forums-goto_post', [self.pk]) 258 return ('forums-goto_post', [self.pk])
257 259