]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
REST: Allow filtering of patches by date
authorStephen Finucane <stephen@that.guru>
Tue, 4 Jul 2017 13:11:28 +0000 (14:11 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 4 Jul 2017 13:11:28 +0000 (14:11 +0100)
This seems to have been missed for some reason. Let's fill in the gap.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/api/filters.py

index 666a3d86ea2376fb7399ef51424eaa99137e3eda..9966543b7b530e11b527d3d8ef8db86d9baf3932 100644 (file)
@@ -110,7 +110,7 @@ class StateFilter(ModelChoiceFilter):
     field_class = StateChoiceField
 
 
-class PatchFilter(ProjectMixin, FilterSet):
+class PatchFilter(ProjectMixin, TimestampMixin, FilterSet):
 
     state = StateFilter(queryset=State.objects.all())