Skip to main content
 首页 » 编程设计

python之_lte、__name、__startswith 等 django 中的查询之记录在哪里

2024年10月01日35mayingbao

我不知道我是不是瞎了或什么的,我正在检查 Django 文档、查询集,我看到了使用 __let、__name 等的做法,但我没有看到这些术语在哪里定义?你能帮我解决这个问题吗?

我正在检查所有这些: https://docs.djangoproject.com/en/dev/ref/models/

请您参考如下方法:

您要查找的内容称为Field Lookups:https://docs.djangoproject.com/en/1.10/ref/models/querysets/#field-lookups

BasicComparisonFilters as __gte, __lte 记录在这里: https://code.djangoproject.com/wiki/BasicComparisonFilters