]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
REST: Add 'category' filter to '/events'
authorStephen Finucane <stephen@that.guru>
Wed, 3 May 2017 14:25:07 +0000 (15:25 +0100)
committerStephen Finucane <stephen@that.guru>
Thu, 4 May 2017 10:31:26 +0000 (11:31 +0100)
There doesn't appear to be any reason that this _can't_ be included, and
it does make the resource a little more usable.

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

index 41adcbdd9e84b12ce60babce07bf7284e8ed6ba3..7c7d74278f770dd10f6803ef02be091bc1f097c8 100644 (file)
@@ -73,7 +73,7 @@ class EventFilter(FilterSet):
 
     class Meta:
         model = Event
-        fields = ('project', 'series', 'patch', 'cover')
+        fields = ('project', 'category', 'series', 'patch', 'cover')
 
 
 class BundleFilter(FilterSet):