mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 21:14:01 +03:00
Merge pull request #3753 from tomlinford/master
Subclass AutoFilterSet from self.default_filter_set
This commit is contained in:
commit
6eb3a42993
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user