From b256f08ba0e8b5f4c9e3b923e94dc9a1ca87a86e Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 15 Sep 2011 12:09:46 +0100 Subject: [PATCH] Fix blacklisting Reddit entries --- app/hr/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/hr/views.py b/app/hr/views.py index 0ab3f64..2989d5d 100644 --- a/app/hr/views.py +++ b/app/hr/views.py @@ -355,7 +355,7 @@ class HrBlacklistUser(FormView): # Blacklist Reddit accounts if installed('reddit'): - for account in u.redditaccount_set.all(): + for account in self.blacklist_user.redditaccount_set.all(): self.blacklist_item(BLACKLIST_TYPE_REDDIT, account.username) messages.add_message(request, messages.INFO, "User %s has been blacklisted" % u.username )