Mercurial > public > sg101
comparison gpp/weblinks/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 | 71fd8454688b |
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 Link.public_objects.all() | 14 return Link.public_objects.all() |
15 | 15 |
16 def get_updated_field(self): | |
17 return 'update_date' | |
18 | |
16 | 19 |
17 site.register(Link, LinkIndex) | 20 site.register(Link, LinkIndex) |