Author: ubernostrum
Date: 2008-09-27 21:55:56 -0500 (Sat, 27 Sep 2008)
New Revision: 9089

Modified:
   django/trunk/django/contrib/comments/feeds.py
Log:
Use correct m2m join table name in LatestCommentsFeed


Modified: django/trunk/django/contrib/comments/feeds.py
===================================================================
--- django/trunk/django/contrib/comments/feeds.py       2008-09-28 02:50:09 UTC 
(rev 9088)
+++ django/trunk/django/contrib/comments/feeds.py       2008-09-28 02:55:56 UTC 
(rev 9089)
@@ -28,7 +28,7 @@
             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]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to