[PATCH 1/7] REST: Use UserFilter for patch delegates

Daniel Axtens dja at axtens.net
Wed May 9 01:18:00 AEST 2018


Stephen Finucane <stephen at that.guru> writes:

> Signed-off-by: Stephen Finucane <stephen at that.guru>
> ---
>  patchwork/api/filters.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/patchwork/api/filters.py b/patchwork/api/filters.py
> index eed7995d..25956e98 100644
> --- a/patchwork/api/filters.py
> +++ b/patchwork/api/filters.py
> @@ -158,8 +158,9 @@ class CoverLetterFilter(ProjectMixin, TimestampMixin, FilterSet):
>  
>  class PatchFilter(ProjectMixin, TimestampMixin, FilterSet):
>  
> -    state = StateFilter(queryset=State.objects.all())
>      submitter = PersonFilter(queryset=Person.objects.all())
> +    delegate = UserFilter(queryset=User.objects.all())
> +    state = StateFilter(queryset=State.objects.all())
Minor nit, is there a reason state is moved?

Happy to fix when applying.

Regards,
Daniel

>  
>      class Meta:
>          model = Patch
> -- 
> 2.14.3
>
> _______________________________________________
> Patchwork mailing list
> Patchwork at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/patchwork


More information about the Patchwork mailing list