diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-01-14 16:43:49 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-01-15 13:44:23 +0100 |
| commit | f054045973ea767ee4e3d60723de4a2f13bf0c49 (patch) | |
| tree | d9f2769bb7aef7ad9a2bf339eaf926bc39b7600d /docs/ref/models/fields.txt | |
| parent | b721f127603516c75ebda6912046ff5f0694e150 (diff) | |
Refs #36070 -- Referred to pk as an attribute when a composite primary key is defined.
This is to avoid confusion that a field is often associated with having
a single associated database column.
Diffstat (limited to 'docs/ref/models/fields.txt')
| -rw-r--r-- | docs/ref/models/fields.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 4cd1d05b3c..d31a541b73 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -722,8 +722,8 @@ isn't defined. A virtual field used for defining a composite primary key. -This field must be defined as the model's ``pk`` field. If present, Django will -create the underlying model table with a composite primary key. +This field must be defined as the model's ``pk`` attribute. If present, Django +will create the underlying model table with a composite primary key. The ``*field_names`` argument is a list of positional field names that compose the primary key. |
