Merge pull request #3753 from tomlinford/master

Subclass AutoFilterSet from self.default_filter_set
This commit is contained in:
Tom Christie 2015-12-17 14:10:13 +00:00
commit 6eb3a42993

View File

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