From f591735b7d0aef2b926539913c4b996757059c66 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Thu, 9 Jan 2014 17:52:42 +0000 Subject: [PATCH] Fix subtle search bug found by stream pages tests, the query was checking a StreamName against the slug, which happened to work with MySQL because the stream name is the same as the slug, just uppercase - but MySQL is case insensitive - Legacy-Id: 7091 --- ietf/doc/views_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/doc/views_search.py b/ietf/doc/views_search.py index 1cceff3d5..246c2f0a7 100644 --- a/ietf/doc/views_search.py +++ b/ietf/doc/views_search.py @@ -298,7 +298,7 @@ def retrieve_search_results(form, all_types=False): if query["substate"]: docs = docs.filter(tags=query["substate"]) elif by == "stream": - docs = docs.filter(stream__slug=query["stream"]) + docs = docs.filter(stream=query["stream"]) # evaluate and fill in attribute results immediately to cut down # the number of queries