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`.
Glossary: Django Beyond the Basics
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`.