Skip to content

Commit

Permalink
Merge pull request encode#3753 from tomlinford/master
Browse files Browse the repository at this point in the history
Subclass AutoFilterSet from self.default_filter_set
  • Loading branch information
tomchristie committed Dec 17, 2015
2 parents 034e26e + c789807 commit 6eb3a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_filter_class(self, view, queryset=None):
return filter_class

if filter_fields:
class AutoFilterSet(FilterSet):
class AutoFilterSet(self.default_filter_set):
class Meta:
model = queryset.model
fields = filter_fields
Expand Down

0 comments on commit 6eb3a42

Please sign in to comment.