Mercurial > public > sg101
comparison gpp/antispam/models.py @ 215:8c1832b9d815
Implement #84; additional checks on spammers; implement stranger status.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 29 May 2010 04:51:28 +0000 |
parents | 28988cce138b |
children |
comparison
equal
deleted
inserted
replaced
214:28988cce138b | 215:8c1832b9d815 |
---|---|
17 def __unicode__(self): | 17 def __unicode__(self): |
18 return self.phrase | 18 return self.phrase |
19 | 19 |
20 def save(self, *args, **kwargs): | 20 def save(self, *args, **kwargs): |
21 cache.delete(SPAM_PHRASE_KEY) | 21 cache.delete(SPAM_PHRASE_KEY) |
22 self.phrase = self.phrase.lower() | |
22 super(SpamPhrase, self).save(*args, **kwargs) | 23 super(SpamPhrase, self).save(*args, **kwargs) |