From: Stephen Finucane Date: Wed, 3 May 2017 14:25:07 +0000 (+0100) Subject: REST: Add 'category' filter to '/events' X-Git-Tag: v2.0.0-rc1~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27f4b4284bdd410fe9b6a465de802d3b8bc99e45;p=thirdparty%2Fpatchwork.git REST: Add 'category' filter to '/events' There doesn't appear to be any reason that this _can't_ be included, and it does make the resource a little more usable. Signed-off-by: Stephen Finucane --- diff --git a/patchwork/api/filters.py b/patchwork/api/filters.py index 41adcbdd..7c7d7427 100644 --- a/patchwork/api/filters.py +++ b/patchwork/api/filters.py @@ -73,7 +73,7 @@ class EventFilter(FilterSet): class Meta: model = Event - fields = ('project', 'series', 'patch', 'cover') + fields = ('project', 'category', 'series', 'patch', 'cover') class BundleFilter(FilterSet):