[PATCH 07/10] filters: rename SearchFilter to SubjectFilter
WEN Pingbo
wengpingbo at gmail.com
Tue Aug 23 19:03:41 AEST 2016
Becase the orig searchfilter only search the name field.
Signed-off-by: WEN Pingbo <wengpingbo at gmail.com>
---
patchwork/filters.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/patchwork/filters.py b/patchwork/filters.py
index 5650014..1995572 100644
--- a/patchwork/filters.py
+++ b/patchwork/filters.py
@@ -226,13 +226,13 @@ class StateFilter(Filter):
return qs + '%s=%s' % (self.param, self.any_key)
-class SearchFilter(Filter):
- param = 'q'
+class SubjectFilter(Filter):
+ param = 'subject'
def __init__(self, filters):
- super(SearchFilter, self).__init__(filters)
- self.name = 'Search'
- self.param = 'q'
+ super(SubjectFilter, self).__init__(filters)
+ self.name = 'Subject'
+ self.param = 'subject'
self.search = None
def _set_key(self, str):
@@ -401,7 +401,7 @@ class DelegateFilter(Filter):
filterclasses = [SubmitterFilter,
StateFilter,
- SearchFilter,
+ SubjectFilter,
ArchiveFilter,
DelegateFilter]
--
1.9.1
More information about the Patchwork
mailing list