[7/7] REST: Use DRF-specific filterset

Message ID 20180411161338.420-8-stephen@that.guru
State New
Headers show
Series
  • Add support for multiple filters
Related show

Commit Message

Stephen Finucane April 11, 2018, 4:13 p.m.
Better error handling, yo.

Signed-off-by: Stephen Finucane <stephen@that.guru>
---
 patchwork/api/filters.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/patchwork/api/filters.py b/patchwork/api/filters.py
index 4d8d504d..f6fff792 100644
--- a/patchwork/api/filters.py
+++ b/patchwork/api/filters.py
@@ -20,7 +20,7 @@ 
 from django.contrib.auth.models import User
 from django.core.exceptions import ValidationError
 from django.db.models import Q
-from django_filters import FilterSet
+from django_filters.rest_framework import FilterSet
 from django_filters import IsoDateTimeFilter
 from django_filters import ModelMultipleChoiceFilter
 from django.forms import ModelMultipleChoiceField as BaseMultipleChoiceField