mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-25 00:34:21 +03:00
AutoFilterSet should subclass from self.default_filter_set
This commit is contained in:
parent
034e26ea31
commit
c78980771d
|
@ -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