Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
624:5d79b09aa52b | 625:08d905e38a86 |
---|---|
149 """ | 149 """ |
150 return self.user.is_active | 150 return self.user.is_active |
151 user_is_active.boolean = True | 151 user_is_active.boolean = True |
152 user_is_active.short_description = "Is Active" | 152 user_is_active.short_description = "Is Active" |
153 | 153 |
154 def reset_text_fields(self): | 154 def reset(self): |
155 """ | 155 """ |
156 Reset profile text fields to empty defaults. | 156 Reset profile fields to empty defaults. |
157 This function is useful when a spammer is identified. | 157 This function is useful when a spammer is identified. |
158 | 158 |
159 """ | 159 """ |
160 self.location = '' | 160 self.location = '' |
161 self.country = '' | |
162 self.birthday = None | |
161 self.occupation = '' | 163 self.occupation = '' |
162 self.interests = '' | 164 self.interests = '' |
163 self.profile_text = '' | 165 self.profile_text = '' |
164 self.signature = '' | 166 self.signature = '' |
165 | 167 |