[PATCH RFC] events-api: allow filtering by date
Aaron Conole
aconole at bytheb.org
Thu Jun 15 04:14:23 AEST 2017
This commit allows users of the REST API to query for events based on
the date field. This will allow utility writers to select a smaller
subset of events when polling.
Signed-off-by: Aaron Conole <aconole at bytheb.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 3dc215c..666a3d8 100644
--- a/patchwork/api/filters.py
+++ b/patchwork/api/filters.py
@@ -127,7 +127,7 @@ class CheckFilter(TimestampMixin, FilterSet):
fields = ('user', 'state', 'context')
-class EventFilter(ProjectMixin, FilterSet):
+class EventFilter(ProjectMixin, TimestampMixin, FilterSet):
class Meta:
model = Event
--
2.9.4
More information about the Patchwork
mailing list