Skip to content

Glossary: Django Beyond the Basics

only()

Also written: .only()

A QuerySet method that fetches just the named columns as model objects. Reading any other field costs one more query per object.

Where the book teaches it

Related terms

values()