Commits

uber...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed a6f8afe

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

  • Participants
  • Parent commits b10c38d
  • Branches 0.91-bugfixes

Comments (0)

Files changed (1)

File 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