﻿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
32674	DEFAULT_AUTO_FIELD changes should be detected for PKs of auto-created intermediate M2M models.	Cristiano Coelho	nobody	"Django 3.2 introduced `DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'`.  However, if we set it to BigAutoField, I would expect that the intermediary table created for ManyToMany relationships also honor this value.

Right now, we end up with tables that have FKs as bigint, but their own PK as integer.  This may not be a direct bug, but will cause issues for sure.

Ideally, ManyToManyField should have an easy way to configure its PK without having to implement the `through` model.

"	New feature	new	Migrations	4.0	Normal		DEFAULT_AUTO_FIELD  AutoField BigAutoField ManyToManyField	ccoelho@… Tom Forbes Simon Charette Andrew Godwin Shai Berger Markus Holtermann אורי Ülgen Sarıkavak	Accepted	0	0	0	0	0	0
