diff options
author | Aaron Conole <aconole@bytheb.org> | 2017-06-14 14:14:23 -0400 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-06-28 20:55:45 +0100 |
commit | e63147532c95ab3526ec653f8eee16d06edd54a6 (patch) | |
tree | ebfc51238b747ba0e77243388ba8fc66fb15ba92 | |
parent | 691b41bd20a28f3fbca29696bfd194374f4e204f (diff) | |
download | patchwork-e63147532c95ab3526ec653f8eee16d06edd54a6.tar patchwork-e63147532c95ab3526ec653f8eee16d06edd54a6.tar.gz |
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 <aconole@bytheb.org>
Reviewed-by: Stephen Finucane <stephen@that.guru>
-rw-r--r-- | patchwork/api/filters.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |