Skip to content

Commit

Permalink
[bug 701386] fixes forum_id filter
Browse files Browse the repository at this point in the history
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
willkg committed Nov 10, 2011
1 parent a566484 commit 38fff11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38fff11

Please sign in to comment.