Permalink
Browse files

[bug 701386] fixes forum_id filter

If you filtered by forum in the contributor forum advanced search, it'd
kick up an error because forum_id is a list of ids and thus should be
added using filter__in= rather than just filter=.
  • Loading branch information...
1 parent a566484 commit 38fff111a077ecc7ca8178141496df3b9777c067 @willkg willkg committed Nov 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/search/views.py
View
@@ -182,7 +182,7 @@ def search(request, template=None):
discussion_s = discussion_s.filter(is_locked=1)
if cleaned['forum']:
- discussion_s = discussion_s.filter(forum_id=cleaned['forum'])
+ discussion_s = discussion_s.filter(forum_id__in=cleaned['forum'])
# Filters common to support and discussion forums
# Created filter

0 comments on commit 38fff11

Please sign in to comment.