From 788e6c081ba21fb75bc00195a82cb212542f7135 Mon Sep 17 00:00:00 2001 From: James Bennett Date: Sun, 28 Sep 2008 02:55:56 +0000 Subject: [PATCH] Use correct m2m join table name in LatestCommentsFeed git-svn-id: http://code.djangoproject.com/svn/django/trunk@9089 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 d01449c9283..418680a5f19 100644 --- a/django/contrib/comments/feeds.py +++ b/django/contrib/comments/feeds.py @@ -28,7 +28,7 @@ class LatestCommentFeed(Feed): is_removed = False, ) if getattr(settings, 'COMMENTS_BANNED_USERS_GROUP', None): - where = ['user_id NOT IN (SELECT user_id FROM auth_users_group WHERE group_id = %s)'] + where = ['user_id NOT IN (SELECT user_id FROM auth_user_groups WHERE group_id = %s)'] params = [settings.COMMENTS_BANNED_USERS_GROUP] qs = qs.extra(where=where, params=params) return qs.order_by('-submit_date')[:40]