[PATCH 7/7] REST: Use DRF-specific filterset
Stephen Finucane
stephen at that.guru
Thu Apr 12 02:13:38 AEST 2018
Better error handling, yo.
Signed-off-by: Stephen Finucane <stephen at that.guru>
---
patchwork/api/filters.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.14.3
More information about the Patchwork
mailing list