~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to docs/ref/models/fields.txt

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2013-02-24 10:28:08 UTC
  • mfrom: (1.2.17)
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: package-import@ubuntu.com-20130224102808-jx3ea5pnoefkzu94
Tags: upstream-1.4.5
Import upstream version 1.4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
252
252
 
253
253
If ``True``, this field is the primary key for the model.
254
254
 
255
 
If you don't specify ``primary_key=True`` for any fields in your model, Django
256
 
will automatically add an :class:`IntegerField` to hold the primary key, so you
 
255
If you don't specify ``primary_key=True`` for any field in your model, Django
 
256
will automatically add an :class:`AutoField` to hold the primary key, so you
257
257
don't need to set ``primary_key=True`` on any of your fields unless you want to
258
258
override the default primary-key behavior. For more, see
259
259
:ref:`automatic-primary-key-fields`.