comparison gpp/forums/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 a5fcf3d1b663
children 79240675b903
comparison
equal deleted inserted replaced
276:8a46843c258f 277:d424b8bae71d
12 12
13 def get_queryset(self): 13 def get_queryset(self):
14 return Post.objects.filter( 14 return Post.objects.filter(
15 topic__forum__in=Forum.objects.public_forums()) 15 topic__forum__in=Forum.objects.public_forums())
16 16
17 def get_updated_field(self):
18 return 'update_date'
19
17 20
18 site.register(Post, PostIndex) 21 site.register(Post, PostIndex)