Mercurial > public > sg101
diff gpp/bio/admin.py @ 363:9d470c7a2b93
Following up on #168; redo some code to make it more DRY. Added a function on the profile to reset the text fields.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 Mar 2011 04:03:30 +0000 |
parents | d1b11096595b |
children | 701730b2fcda |
line wrap: on
line diff
--- a/gpp/bio/admin.py Sat Mar 05 03:43:32 2011 +0000 +++ b/gpp/bio/admin.py Sat Mar 05 04:03:30 2011 +0000 @@ -98,11 +98,7 @@ for profile in qs: Comment.objects.filter(user=profile.user).delete() delete_user_posts(profile.user) - profile.location = '' - profile.occupation = '' - profile.interests = '' - profile.profile_text = '' - profile.signature = '' + profile.reset_text_fields() profile.save() mark_spammer.short_description = "Mark selected users as spammers"