Skip to content

Glossary: Django Beyond the Basics

lookup_field

A viewset attribute that says which model field finds one object in the URL. The product viewset sets it to `"slug"` instead of the default `pk`.

Where the book teaches it

Related terms

ViewSet, router