comparison 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
comparison
equal deleted inserted replaced
347:69d0306a6fe7 348:d1b11096595b
17 17
18 """ 18 """
19 for pending_user in qs: 19 for pending_user in qs:
20 create_new_user(pending_user, admin_activation=True) 20 create_new_user(pending_user, admin_activation=True)
21 21
22 self.message_user(request, "%s accounts activated" % qs.count())
23
22 activate_account.short_description = "Activate accounts for selected users" 24 activate_account.short_description = "Activate accounts for selected users"
23 25
24 26
25 admin.site.register(IllegalUsername) 27 admin.site.register(IllegalUsername)
26 admin.site.register(IllegalEmail) 28 admin.site.register(IllegalEmail)