# HG changeset patch # User Brian Neal # Date 1343173715 18000 # Node ID c8b4dfb2d1e526cd390a9b3cd6c6d6a1b1070170 # Parent a7968613c469cf59605ac615fc47eff521182ab7 When deactivating spammers, delete their avatar. BB issue #13. diff -r a7968613c469 -r c8b4dfb2d1e5 antispam/utils.py --- a/antispam/utils.py Mon Jul 23 19:53:36 2012 -0500 +++ b/antispam/utils.py Tue Jul 24 18:48:35 2012 -0500 @@ -80,6 +80,7 @@ profile.status = STA_SPAMMER profile.status_date = datetime.datetime.now() profile.reset_text_fields() + profile.avatar.delete(save=False) profile.save() Comment.objects.filter(user=user).delete()