]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
REST API: add "project" to series filter
authorAndy Doan <andy.doan@linaro.org>
Wed, 25 Jan 2017 20:17:03 +0000 (14:17 -0600)
committerStephen Finucane <stephen@that.guru>
Thu, 26 Jan 2017 23:47:14 +0000 (23:47 +0000)
It would be nice to allow users to filter on the project they are
interested in.

Signed-off-by: Andy Doan <andy.doan@linaro.org>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/api/filters.py

index 5f237b46a093d58f90ef5fc60ac68a1964a4ba68..f475ca84e995c52e53bbbc17de4525b83c30e0c6 100644 (file)
@@ -37,7 +37,7 @@ class SeriesFilter(TimestampMixin, FilterSet):
 
     class Meta:
         model = Series
-        fields = ('submitter',)
+        fields = ('submitter', 'project')
 
 
 class CoverLetterFilter(TimestampMixin, FilterSet):