Fixed bug in comment feed turned up by pyflakes.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-07-21 19:12:51 +00:00
parent 17d0bd1512
commit 5c5ca53b70
1 changed files with 1 additions and 1 deletions

View File

@ -36,6 +36,6 @@ class LatestCommentsFeed(LatestFreeCommentsFeed):
qs = qs.filter(is_removed=False) qs = qs.filter(is_removed=False)
if settings.COMMENTS_BANNED_USERS_GROUP: if settings.COMMENTS_BANNED_USERS_GROUP:
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_users_group WHERE group_id = %s)']
params = [COMMENTS_BANNED_USERS_GROUP] params = [settings.COMMENTS_BANNED_USERS_GROUP]
qs = qs.extra(where=where, params=params) qs = qs.extra(where=where, params=params)
return qs return qs