﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36037	Documentation mentions default primary key being regular IntegerField, not BigAutoField	Ari Pollak		"BigAutoField is the default type of primary key now, and in Postgres, regular IntegerField only goes up to around 2 billion. However, a couple of pages still talk about the default primary key being an IntegerField.

Under https://docs.djangoproject.com/en/5.1/topics/db/models/#field-options:

If you don’t specify primary_key=True for any fields in your model, Django will automatically add an IntegerField 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 Automatic primary key fields

Under https://docs.djangoproject.com/en/5.1/ref/contrib/contenttypes/#generic-relations:

2. Give your model a field that can store primary key values from the models you’ll be relating to. For most models, this means a PositiveIntegerField. The usual name for this field is “object_id”."	Cleanup/optimization	new	Documentation	5.1	Normal				Unreviewed	1	0	0	0	1	0
