From 573f996fbd3741041079564424d9ae196364bb2f Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 15 Mar 2011 10:36:20 +0000 Subject: [PATCH] Provide blacklist groupnames instead of the objects --- app/hr/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/hr/tasks.py b/app/hr/tasks.py index cef2abe..88e12e7 100644 --- a/app/hr/tasks.py +++ b/app/hr/tasks.py @@ -23,5 +23,5 @@ def blacklist_check(): blstr = "" for i in val: blstr = "%s%s - %s - %s\n" % (blstr, i.get_type_display(), i.value, i.reason) - msg = "Suspect User found: %s\nGroups: %s\nBlacklist Items:\n\n%s" % (u.username, u.groups.all(), blstr) + msg = "Suspect User found: %s\nGroups: %s\nBlacklist Items:\n\n%s" % (u.username, u.groups.all().values_list('name'), blstr) send_mail('Automated blacklist checker alert - %s' % u.username, msg, 'blacklist@pleaseignore.com', ['abuse@pleaseignore.com'])