Mercurial > public > sg101
comparison gpp/bio/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 | cd4124b19196 |
children | 79240675b903 |
comparison
equal
deleted
inserted
replaced
276:8a46843c258f | 277:d424b8bae71d |
---|---|
10 author = CharField(model_attr='user') | 10 author = CharField(model_attr='user') |
11 | 11 |
12 def get_queryset(self): | 12 def get_queryset(self): |
13 return UserProfile.objects.filter(user__is_active=True) | 13 return UserProfile.objects.filter(user__is_active=True) |
14 | 14 |
15 def get_updated_field(self): | |
16 return 'update_date' | |
17 | |
15 | 18 |
16 site.register(UserProfile, UserProfileIndex) | 19 site.register(UserProfile, UserProfileIndex) |