Testing man
Testing man

Reputation: 741

_lte, __name, __startswith etc. queries in django - where are documented?

I don't know if I am blind or something, I am checking django documentation, query sets and I see practice of using __let, __name etc, but I don't see where this terms are defined? Can you help me with this?

I am checking all this: https://docs.djangoproject.com/en/dev/ref/models/

Upvotes: 2

Views: 1360

Answers (2)

Hybrid
Hybrid

Reputation: 7049

What you are looking for is called Field Lookups: https://docs.djangoproject.com/en/1.10/ref/models/querysets/#field-lookups

BasicComparisonFilters as __gte, __lte are documented here: https://code.djangoproject.com/wiki/BasicComparisonFilters

Upvotes: 2

dentemm
dentemm

Reputation: 6379

It is located in the QuerySet documentation:

https://docs.djangoproject.com/en/1.10/ref/models/querysets/

Upvotes: 2

Related Questions