0.91-bugfixes: Table name needs to be pluralized in that query

git-svn-id: http://code.djangoproject.com/svn/django/branches/0.91-bugfixes@4714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
James Bennett 2007-03-12 17:12:10 +00:00
parent d8b1717266
commit 32b733ccbd
1 changed files with 1 additions and 1 deletions

View File

@ -43,6 +43,6 @@ class LatestCommentsFeed(LatestFreeCommentsFeed):
kwargs = LatestFreeCommentsFeed._get_lookup_kwargs(self)
kwargs['is_removed__exact'] = False
if settings.COMMENTS_BANNED_USERS_GROUP:
kwargs['where'] = ['user_id NOT IN (SELECT user_id FROM auth_users_group WHERE group_id = %s)']
kwargs['where'] = ['user_id NOT IN (SELECT user_id FROM auth_users_groups WHERE group_id = %s)']
kwargs['params'] = [settings.COMMENTS_BANNED_USERS_GROUP]
return kwargs