Skip to content

Glossary: Django Basics

primary key

Also written: PK, pk, id, id field

A column that uniquely identifies each row. Django adds a numeric `id` primary key (1, 2, 3, …) to every model automatically, and fixtures call it `pk`.

Where the book teaches it

Related terms

fixturemodel