summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Conole <aconole@bytheb.org>2017-06-14 14:14:23 -0400
committerStephen Finucane <stephen@that.guru>2017-06-28 20:55:45 +0100
commite63147532c95ab3526ec653f8eee16d06edd54a6 (patch)
treeebfc51238b747ba0e77243388ba8fc66fb15ba92
parent691b41bd20a28f3fbca29696bfd194374f4e204f (diff)
downloadpatchwork-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.py2
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