Django filter() lookup type documentation

前端 未结 2 2031
忘了有多久
忘了有多久 2020-12-24 09:35

I looked on Django\'s documentation and Googled every varation of the phrase but I cannot find any documentation that exactly describes the behaviour of lookuptypes.

相关标签:
2条回答
  • 2020-12-24 10:02

    "Field lookups" documentation.

    0 讨论(0)
  • 2020-12-24 10:05

    They are called "field lookups" in Django. Field lookups have pretty comprehensive documentation: https://docs.djangoproject.com/en/dev/ref/models/querysets/#id4

    These are pretty well documented:

    • exact
    • iexact
    • contains
    • icontains
    • in
    • gt
    • gte
    • lt
    • lte
    • startswith
    • istartswith
    • endswith
    • iendswith
    • range
    • year
    • month
    • day
    • week_day
    • isnull
    • search
    • regex
    • iregex
    0 讨论(0)
提交回复
热议问题