comparison gpp/bio/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 d83296cac940
children 98b373ca09f3
comparison
equal deleted inserted replaced
532:ff67946fd4b0 533:387d46abcb95
9 9
10 class UserProfileIndex(CondQueuedSearchIndex): 10 class UserProfileIndex(CondQueuedSearchIndex):
11 text = CharField(document=True, use_template=True) 11 text = CharField(document=True, use_template=True)
12 author = CharField(model_attr='user') 12 author = CharField(model_attr='user')
13 13
14 def get_queryset(self): 14 def index_queryset(self):
15 return UserProfile.objects.filter(user__is_active=True) 15 return UserProfile.objects.filter(user__is_active=True)
16 16
17 def get_updated_field(self): 17 def get_updated_field(self):
18 return 'update_date' 18 return 'update_date'
19 19