diff gpp/accounts/admin.py @ 348:d1b11096595b

Fix #168; when nailing a spammer, clear their profile text fields. Guard against topics and forums that don't exist when deleting posts in the signal handler. Make the forum stats template tag only display the latest active users.
author Brian Neal <bgneal@gmail.com>
date Wed, 02 Mar 2011 02:18:28 +0000
parents 69d0306a6fe7
children
line wrap: on
line diff
--- a/gpp/accounts/admin.py	Wed Mar 02 01:11:32 2011 +0000
+++ b/gpp/accounts/admin.py	Wed Mar 02 02:18:28 2011 +0000
@@ -19,6 +19,8 @@
        for pending_user in qs:
            create_new_user(pending_user, admin_activation=True)
 
+       self.message_user(request, "%s accounts activated" % qs.count())
+
    activate_account.short_description = "Activate accounts for selected users"