1 Star 0 Fork 1.1K

云生/GreaterWMS

forked from GreaterWMS/GreaterWMS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
filter.py 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
Elvis.Shi 提交于 2022-04-03 09:49 . V 2.1.3
from django_filters import FilterSet
from .models import ListModel
class Filter(FilterSet):
class Meta:
model = ListModel
fields = {
"id": ['exact', 'iexact', 'gt', 'gte', 'lt', 'lte', 'isnull', 'in', 'range'],
"customer_name": ['exact', 'iexact', 'contains', 'icontains'],
"customer_city": ['exact', 'iexact', 'contains', 'icontains'],
"customer_address": ['exact', 'iexact', 'contains', 'icontains'],
"customer_contact": ['exact', 'iexact', 'contains', 'icontains'],
"customer_manager": ['exact', 'iexact', 'contains', 'icontains'],
"customer_level": ['exact', 'iexact', 'gt', 'gte', 'lt', 'lte', 'isnull', 'in', 'range'],
"creater": ['exact', 'iexact', 'contains', 'icontains'],
"is_delete": ['exact', 'iexact'],
"create_time": ['year', 'month', 'day', 'week_day', 'gt', 'gte', 'lt', 'lte', 'range'],
"update_time": ['year', 'month', 'day', 'week_day', 'gt', 'gte', 'lt', 'lte', 'range']
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/yunsheng/GreaterWMS.git
git@gitee.com:yunsheng/GreaterWMS.git
yunsheng
GreaterWMS
GreaterWMS
master

搜索帮助