Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #19824 - Corrected the class described for Field.primary_key fr…

…om IntegerField to AutoField.

Thanks Keryn Knight.
  • Loading branch information...
commit 218bbef0c4890b3b853dee945a02215533b923b7 1 parent 7a80904
Tim Graham authored February 16, 2013

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/ref/models/fields.txt
4  docs/ref/models/fields.txt
@@ -248,8 +248,8 @@ Alternatively you can use plain text and
248 248
 
249 249
 If ``True``, this field is the primary key for the model.
250 250
 
251  
-If you don't specify ``primary_key=True`` for any fields in your model, Django
252  
-will automatically add an :class:`IntegerField` to hold the primary key, so you
  251
+If you don't specify ``primary_key=True`` for any field in your model, Django
  252
+will automatically add an :class:`AutoField` to hold the primary key, so you
253 253
 don't need to set ``primary_key=True`` on any of your fields unless you want to
254 254
 override the default primary-key behavior. For more, see
255 255
 :ref:`automatic-primary-key-fields`.

0 notes on commit 218bbef

Please sign in to comment.
Something went wrong with that request. Please try again.