AutoFilterSet should subclass from self.default_filter_set

This commit is contained in:
Tom Linford 2015-12-16 15:36:07 -08:00
parent 034e26ea31
commit c78980771d

View File

@ -99,7 +99,7 @@ class DjangoFilterBackend(BaseFilterBackend):
return filter_class
if filter_fields:
class AutoFilterSet(FilterSet):
class AutoFilterSet(self.default_filter_set):
class Meta:
model = queryset.model
fields = filter_fields