Mercurial > public > sg101
diff bio/models.py @ 625:08d905e38a86
For issue 23, clear spammer profile fields, shouts, & elsewhere links
upon deactivation.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 01 Nov 2012 19:35:30 -0500 |
parents | 678a1a2ef55a |
children | ddc189ff96bb |
line wrap: on
line diff
--- a/bio/models.py Wed Oct 31 20:23:12 2012 -0500 +++ b/bio/models.py Thu Nov 01 19:35:30 2012 -0500 @@ -151,13 +151,15 @@ user_is_active.boolean = True user_is_active.short_description = "Is Active" - def reset_text_fields(self): + def reset(self): """ - Reset profile text fields to empty defaults. + Reset profile fields to empty defaults. This function is useful when a spammer is identified. """ self.location = '' + self.country = '' + self.birthday = None self.occupation = '' self.interests = '' self.profile_text = ''