Mercurial > public > sg101
comparison gpp/downloads/search_indexes.py @ 277:d424b8bae71d
Fixing #128 and #129. Add elsewhere weblinks to search content. Add support for haystack's get_update_field() method.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 02 Oct 2010 23:24:39 +0000 |
parents | 8d13baeaa5c1 |
children | 79240675b903 |
comparison
equal
deleted
inserted
replaced
276:8a46843c258f | 277:d424b8bae71d |
---|---|
11 pub_date = DateTimeField(model_attr='date_added') | 11 pub_date = DateTimeField(model_attr='date_added') |
12 | 12 |
13 def get_queryset(self): | 13 def get_queryset(self): |
14 return Download.public_objects.all() | 14 return Download.public_objects.all() |
15 | 15 |
16 def get_updated_field(self): | |
17 return 'update_date' | |
18 | |
16 | 19 |
17 site.register(Download, DownloadIndex) | 20 site.register(Download, DownloadIndex) |