﻿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
36791	Migration does not drop old M2M through-table when ManyToManyField target model changes	Johanan Oppong Amoateng	Johanan Oppong Amoateng	"When changing the target model of a ManyToManyField, the migration autodetector generates only an AlterField operation. Django does not create a RemoveField + AddField sequence, and the old automatically generated through-table is left in place.

This results in the database schema no longer matching the model definitions. In my case, the stale through-table caused inconsistent M2M behaviour and errors when interacting with the relationship. No data records were lost, but the schema was incorrect until manually fixed.

This behaviour appears inconsistent with how Django handles other destructive schema changes."	Bug	closed	Migrations	6.0	Normal	fixed		Johanan Oppong Amoateng	Ready for checkin	1	0	0	0	0	0
