You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
自动生成的filter,采用的字段是filter_class 和 filter_fields
但是我的filter不起作用,我看了一下django_filter 发现其属性字段有变更:
https://django-filter.readthedocs.io/en/main/guide/migration.html
View attributes renamed (#867)
The text was updated successfully, but these errors were encountered: