﻿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
24241	state.clone doesn't copy Django models	Claude Paroz	Marten Kenbeek	"While debugging #24225, I noticed that `StateApps.clone()`, even if it calls `copy.deepcopy(self.all_models)`, the `all_models` structure is only partially deecopied.

`all_models` looks like:
{{{
defaultdict(<class 'collections.OrderedDict'>, {'migrations': OrderedDict([('tag', <class 'Tag'>)])})
}}}

Unfortunately, the `<class 'Tag'>` class is identical in the original and the copy (and what's more important, its `_meta` content), which is a potential cause of difficult-to-debug bugs. Hints?"	Bug	closed	Migrations	1.8alpha1	Release blocker	wontfix		sokandpal@… Markus Holtermann	Accepted	0	0	0	0	0	0
