Skip to content

Glossary: Django Beyond the Basics

values()

Also written: values_list(), .values(), .values_list()

QuerySet methods that return rows as dicts (`values`) or tuples (`values_list`) holding only the fields you name. Before `annotate`, `values` sets the grouping.

Where the book teaches it

Related terms

annotate()only()