Several view-related attributes have been renamed to improve consistency with other parts of the library. The following classes are affected:
DRF ViewSet.filter_class => filterset_class
DRF ViewSet.filter_fields => filterset_fields
DjangoFilterBackend.default_filter_set => filterset_base
DjangoFilterBackend.get_filter_class() => get_filterset_class()
FilterMixin.filter_fields => filterset_fields
自动生成的filter,采用的字段是filter_class 和 filter_fields 但是我的filter不起作用,我看了一下django_filter 发现其属性字段有变更: https://django-filter.readthedocs.io/en/main/guide/migration.html
View attributes renamed (#867)