Skip to content

Glossary: Django Basics

field lookup

Also written: lookup, lookups, __lte, __icontains

A condition in a filter made of a field name, two underscores and a test, such as `price__lte=16`. Double underscores can also follow a relationship, as in `category__slug`.

Where the book teaches it

Related terms

QuerySetForeignKey