comparison gpp/antispam/utils.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 767cedc7d12a
children 93f049a241ff
comparison
equal deleted inserted replaced
561:8f3b7f0d4d13 562:98b373ca09f3
58 user.is_active = False 58 user.is_active = False
59 user.save() 59 user.save()
60 profile = user.get_profile() 60 profile = user.get_profile()
61 profile.status = STA_SUSPENDED 61 profile.status = STA_SUSPENDED
62 profile.status_date = datetime.datetime.now() 62 profile.status_date = datetime.datetime.now()
63 profile.save() 63 profile.save(content_update=False)
64 64
65 65
66 def _get_spam_phrases(): 66 def _get_spam_phrases():
67 """This function returns the current list of spam phrase strings. 67 """This function returns the current list of spam phrase strings.
68 The strings are cached to avoid hitting the database. 68 The strings are cached to avoid hitting the database.