﻿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
7350	Multi-table Models and Fixtures	Greg Taylor	nobody	"It seems like multi-table sub-classed models (not abstract) don't
honor the ""pk"" being specified in fixtures. For example, I have an
Event class that is sub-classed by a Race model. The Event class is in
an app called ""calendar"" and the Race model is in an app called
""regattas"". I dumpdata regattas, reset both apps, and loaddata the
regattas fixture. It loads properly but all of the PKs are now
sequential, meaning a lot of other models are now pointing at the
wrong regatta primary keys. There were regattas with PK IDs 14, 16, and 18, but
are now 1, 2, and 3. I have confirmed that the fixture contains the
old 14, 16, and 18 primary keys.

The problem is the keys seem to be compacted rather than being loaded
from the fixture. The keys are not always uninterrupted sequences of numbers due to deletes.
So the problem doesn't exhibit itself until you delete, dumpdata, then
try to re-load. "		closed	Core (Other)	dev		fixed	model, inheritance, subclass, fixture		Unreviewed	0	0	0	0	0	0
