mirror of https://github.com/django/django.git
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:
parent
17d0bd1512
commit
5c5ca53b70
|
@ -36,6 +36,6 @@ class LatestCommentsFeed(LatestFreeCommentsFeed):
|
|||
qs = qs.filter(is_removed=False)
|
||||
if settings.COMMENTS_BANNED_USERS_GROUP:
|
||||
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)
|
||||
return qs
|
||||
|
|
Loading…
Reference in New Issue