comparison gpp/bio/search_indexes.py @ 562:98b373ca09f3

For bitbucket issue #3, ensure that changes to Profile, Post & Topic models via the admin cause the search index to be updated.
author Brian Neal <bgneal@gmail.com>
date Wed, 08 Feb 2012 18:58:57 -0600
parents 387d46abcb95
children
comparison
equal deleted inserted replaced
561:8f3b7f0d4d13 562:98b373ca09f3
24 profile_content_update.disconnect(self.enqueue_save) 24 profile_content_update.disconnect(self.enqueue_save)
25 25
26 def enqueue_save(self, sender, **kwargs): 26 def enqueue_save(self, sender, **kwargs):
27 return self.enqueue('update', sender) 27 return self.enqueue('update', sender)
28 28
29 def can_index(self, instance):
30 return instance.user.is_active
31
32 29
33 site.register(UserProfile, UserProfileIndex) 30 site.register(UserProfile, UserProfileIndex)