Mercurial > public > sg101
diff gpp/forums/search_indexes.py @ 533:387d46abcb95
Updated to Haystack 1.2.6. Got the latest Haystack, xapian backend, and
queued_search from PyPi. This is for ticket #215.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 26 Dec 2011 23:05:29 +0000 |
parents | d9b6c4ec1977 |
children |
line wrap: on
line diff
--- a/gpp/forums/search_indexes.py Sun Dec 25 04:15:32 2011 +0000 +++ b/gpp/forums/search_indexes.py Mon Dec 26 23:05:29 2011 +0000 @@ -12,7 +12,7 @@ author = CharField(model_attr='user') pub_date = DateTimeField(model_attr='creation_date') - def get_queryset(self): + def index_queryset(self): return Topic.objects.filter(forum__in=Forum.objects.public_forum_ids()) def get_updated_field(self): @@ -36,7 +36,7 @@ author = CharField(model_attr='user') pub_date = DateTimeField(model_attr='creation_date') - def get_queryset(self): + def index_queryset(self): return Post.objects.filter( topic__forum__in=Forum.objects.public_forum_ids())