From e63147532c95ab3526ec653f8eee16d06edd54a6 Mon Sep 17 00:00:00 2001 From: Aaron Conole Date: Wed, 14 Jun 2017 14:14:23 -0400 Subject: [PATCH] events-api: allow filtering by date 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 Reviewed-by: Stephen Finucane --- 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 3dc215c0..666a3d86 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.47.3