Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use correct m2m join table name in LatestCommentsFeed

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 788e6c081ba21fb75bc00195a82cb212542f7135 1 parent cc72e64
James Bennett authored September 28, 2008

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/comments/feeds.py
2  django/contrib/comments/feeds.py
@@ -28,7 +28,7 @@ def items(self):
28 28
             is_removed = False,
29 29
         )
30 30
         if getattr(settings, 'COMMENTS_BANNED_USERS_GROUP', None):
31  
-            where = ['user_id NOT IN (SELECT user_id FROM auth_users_group WHERE group_id = %s)']
  31
+            where = ['user_id NOT IN (SELECT user_id FROM auth_user_groups WHERE group_id = %s)']
32 32
             params = [settings.COMMENTS_BANNED_USERS_GROUP]
33 33
             qs = qs.extra(where=where, params=params)
34 34
         return qs.order_by('-submit_date')[:40]

0 notes on commit 788e6c0

Please sign in to comment.
Something went wrong with that request. Please try again.