mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-01 22:14:06 +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
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user