File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88from django .shortcuts import render_to_response as render
99from django .template import RequestContext
1010from django .conf import settings
11+ from django .db .models import Q
12+
1113
1214from ietf .ipr .models import IprDocAlias , IprDetail
1315from ietf .ipr .related import related_docs
1416from ietf .utils .draft_search import normalize_draftname
1517from ietf .group .models import Group
1618from ietf .doc .models import DocAlias
1719
18- from itertools import chain
19-
2020
2121def iprs_from_docs (docs ):
2222 iprs = []
@@ -43,9 +43,7 @@ def patent_file_search(url, q):
4343 return False
4444
4545def search (request ):
46- wgs = Group .objects .filter (type = "wg" ).select_related ().order_by ("acronym" )
47- rgs = Group .objects .filter (type = "rg" ).select_related ().order_by ("acronym" )
48- wgs = chain (wgs ,rgs )
46+ wgs = Group .objects .filter (Q (type = "wg" ) | Q (type = "rg" )).select_related ().order_by ("acronym" )
4947
5048 search_type = request .GET .get ("option" )
5149 if search_type :
You can’t perform that action at this time.
0 commit comments