REST API: add "project" to series filter

Andy Doan andy.doan at linaro.org
Thu Jan 26 07:17:03 AEDT 2017


It would be nice to allow users to filter on the project they are
interested in.

Signed-off-by: Andy Doan <andy.doan at linaro.org>
---
 patchwork/api/filters.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/patchwork/api/filters.py b/patchwork/api/filters.py
index 5f237b4..f475ca8 100644
--- a/patchwork/api/filters.py
+++ b/patchwork/api/filters.py
@@ -37,7 +37,7 @@ class SeriesFilter(TimestampMixin, FilterSet):

     class Meta:
         model = Series
-        fields = ('submitter',)
+        fields = ('submitter', 'project')


 class CoverLetterFilter(TimestampMixin, FilterSet):
--
2.7.4



More information about the Patchwork mailing list