Mercurial > public > sg101
comparison gpp/podcast/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 | 76ad86454ce9 |
children | d424b8bae71d |
comparison
equal
deleted
inserted
replaced
225:7fdfc9b3c71a | 226:405468b8e3b9 |
---|---|
54 def __unicode__(self): | 54 def __unicode__(self): |
55 return self.title | 55 return self.title |
56 | 56 |
57 class Meta: | 57 class Meta: |
58 ordering = ('-pubdate', ) | 58 ordering = ('-pubdate', ) |
59 verbose_name = 'podcast' | |
60 verbose_name_plural = 'podcasts' | |
59 | 61 |
60 def search_title(self): | 62 def search_title(self): |
61 return "%s: %s" % (self.title, self.subtitle) | 63 return "%s: %s" % (self.title, self.subtitle) |
62 | 64 |
63 def search_summary(self): | 65 def search_summary(self): |