[PATCH 07/10] filters: rename SearchFilter to SubjectFilter

Stephen Finucane stephenfinucane at hotmail.com
Tue Aug 30 09:12:26 AEST 2016


On 23 Aug 17:03, WEN Pingbo wrote:
> Becase the orig searchfilter only search the name field.
> 
> Signed-off-by: WEN Pingbo <wengpingbo at gmail.com>

Reviewed-by: Stephen Finucane <stephenfinucane at hotmail.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
> 
> _______________________________________________
> Patchwork mailing list
> Patchwork at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/patchwork


More information about the Patchwork mailing list