From 32b733ccbd35bd48003621cb2c86ef442e44ad3f Mon Sep 17 00:00:00 2001 From: James Bennett Date: Mon, 12 Mar 2007 17:12:10 +0000 Subject: [PATCH] 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 --- django/contrib/comments/feeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/comments/feeds.py b/django/contrib/comments/feeds.py index ed26991fa0..cd38bd4567 100644 --- a/django/contrib/comments/feeds.py +++ b/django/contrib/comments/feeds.py @@ -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