summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-02-16 18:31:54 -0500
committerTim Graham <timograham@gmail.com>2013-02-16 18:34:34 -0500
commit57b62a74cb44ac3cf8b1a9d4cf75bfe953208814 (patch)
tree32faa4973156e151d8da2c00a3637c1b492ac42a /docs
parent83e512fa6e45d2c9e63735bb0c3cd8f1fcd2e616 (diff)
[1.4.x] Fixed #19824 - Corrected the class described for Field.primary_key from IntegerField to AutoField.
Thanks Keryn Knight. Backport of 218bbef0c4 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/fields.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index b186a461c7..cb359fba8d 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -252,8 +252,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`.