Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.5.x] Fixed #19824 - Corrected the class described for Field.primar…

…y_key from IntegerField to AutoField.

Thanks Keryn Knight.

Backport of 218bbef from master
  • Loading branch information...
commit ba794f68bfa86c2744e89adeb6027c9d6059d85e 1 parent ad2b091
@timgraham timgraham authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/models/fields.txt
View
4 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`.
Please sign in to comment.
Something went wrong with that request. Please try again.