Commits

Anonymous committed a6f8afe

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

Comments (0)

Files changed (1)

django/contrib/comments/feeds.py

         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