From: Aaron Conole Date: Wed, 14 Jun 2017 18:14:23 +0000 (-0400) Subject: events-api: allow filtering by date X-Git-Tag: v2.0.0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e63147532c95ab3526ec653f8eee16d06edd54a6;p=thirdparty%2Fpatchwork.git 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 --- 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