﻿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
28043	Cloning a ModelState fails to deepcopy all options	Ian Foote	Ian Foote	In [https://github.com/django/django/blob/351835f26234cade43f0bed45441fc144c33a785/django/db/migrations/state.py#L548 ModelState.clone], we copy the {{{self.options}}} dictionary, but this fails to copy any mutable values, specifically {{{indexes}}}. Since {{{AddIndex.state_forwards}}} mutates {{{indexes}}}, this leads to an invalid state.	Bug	closed	Migrations	1.11	Release blocker	fixed	ModelState clone indexes	Markus Holtermann	Accepted	1	0	0	0	0	0
