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:
parent
d8b1717266
commit
32b733ccbd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue