首页 > TAG信息列表 > djnago
djnago-filter用法
django-filter用法 集成drf 自定义filter文件内 from django_filters import rest_framework as rs_filters from .models import * class TestFilter(rs_filters.FilterSet): title = rs_filters.CharFilter(lookup_expr='icontains') # 不指定field_name默认用变量名去对