Skip to content

Commit

Permalink
[1.4.x] Fixed #19824 - Corrected the class described for Field.primar…
Browse files Browse the repository at this point in the history
…y_key from IntegerField to AutoField.

Thanks Keryn Knight.

Backport of 218bbef from master
  • Loading branch information
timgraham committed Feb 16, 2013
1 parent 83e512f commit 57b62a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ref/models/fields.txt
Expand Up @@ -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`.
Expand Down

0 comments on commit 57b62a7

Please sign in to comment.