[PATCH] REST: Add 'category' filter to '/events'
Stephen Finucane
stephen at that.guru
Thu May 4 00:25:07 AEST 2017
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 <stephen at that.guru>
---
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 41adcbd..7c7d742 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):
--
2.9.3
More information about the Patchwork
mailing list