diff options
| author | Tim Graham <timograham@gmail.com> | 2013-02-16 18:31:54 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-02-16 18:34:18 -0500 |
| commit | ba794f68bfa86c2744e89adeb6027c9d6059d85e (patch) | |
| tree | 5eb365f645abc7820f6c7b99019ef1ea5222c6e5 | |
| parent | ad2b091c1f48687188295e57b5cf4f6ad751f572 (diff) | |
[1.5.x] Fixed #19824 - Corrected the class described for Field.primary_key from IntegerField to AutoField.
Thanks Keryn Knight.
Backport of 218bbef0c4 from master
| -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 c6a23dbcb5..0cd0169681 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -248,8 +248,8 @@ Alternatively you can use plain text and If ``True``, this field is the primary key for the model. -If you don't specify ``primary_key=True`` for any fields in your model, Django -will automatically add an :class:`IntegerField` to hold the primary key, so you +If you don't specify ``primary_key=True`` for any field in your model, Django +will automatically add an :class:`AutoField` to hold the primary key, so you don't need to set ``primary_key=True`` on any of your fields unless you want to override the default primary-key behavior. For more, see :ref:`automatic-primary-key-fields`. |
