# HG changeset patch # User Brian Neal # Date 1324940729 0 # Node ID 387d46abcb95c8fda098f25dc974eb976ab5904a # Parent ff67946fd4b07d9eef8c7b56d81e1b42bd9708e9 Updated to Haystack 1.2.6. Got the latest Haystack, xapian backend, and queued_search from PyPi. This is for ticket #215. diff -r ff67946fd4b0 -r 387d46abcb95 gpp/bio/search_indexes.py --- a/gpp/bio/search_indexes.py Sun Dec 25 04:15:32 2011 +0000 +++ b/gpp/bio/search_indexes.py Mon Dec 26 23:05:29 2011 +0000 @@ -11,7 +11,7 @@ text = CharField(document=True, use_template=True) author = CharField(model_attr='user') - def get_queryset(self): + def index_queryset(self): return UserProfile.objects.filter(user__is_active=True) def get_updated_field(self): diff -r ff67946fd4b0 -r 387d46abcb95 gpp/downloads/search_indexes.py --- a/gpp/downloads/search_indexes.py Sun Dec 25 04:15:32 2011 +0000 +++ b/gpp/downloads/search_indexes.py Mon Dec 26 23:05:29 2011 +0000 @@ -11,7 +11,7 @@ author = CharField(model_attr='user') pub_date = DateTimeField(model_attr='date_added') - def get_queryset(self): + def index_queryset(self): return Download.public_objects.all() def get_updated_field(self): diff -r ff67946fd4b0 -r 387d46abcb95 gpp/forums/search_indexes.py --- 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()) diff -r ff67946fd4b0 -r 387d46abcb95 gpp/weblinks/search_indexes.py --- a/gpp/weblinks/search_indexes.py Sun Dec 25 04:15:32 2011 +0000 +++ b/gpp/weblinks/search_indexes.py Mon Dec 26 23:05:29 2011 +0000 @@ -11,7 +11,7 @@ author = CharField(model_attr='user') pub_date = DateTimeField(model_attr='date_added') - def get_queryset(self): + def index_queryset(self): return Link.public_objects.all() def get_updated_field(self):