mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fix blacklisting Reddit entries
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user