Django TypeError: 'Meta.fields' contains fields that are not defined on this FilterSet: i, n, d, e

Django TypeError: ‘Meta.fields’ contains fields that are not defined on this FilterSet: i, n, d, e, x, _, t, y, p

filter_backends = (DjangoFilterBackend)
filter_fields = ('index_type')

分别在后面加逗号

filter_backends = (DjangoFilterBackend,)
filter_fields = ('index_type',)

你可能感兴趣的:(Django TypeError: 'Meta.fields' contains fields that are not defined on this FilterSet: i, n, d, e)