﻿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
29841	Fixtures counting backward	Victor Porton	nobody	"I have this problem: [https://stackoverflow.com/q/52709119/856090]

I want a table to hold both models from fixtures and models generated dynamically by my Python code.

If I add a new fixture record and then run `loaddata` it may overwrite one of the dynamically created objects!

I also need to have fixed (not autogenerated) primary keys in order to refer to object from the fixture from my Python code.

My suggestion:

Assign to the fixture objects primary keys like `2**31 - 1`, `2**31 - 2`, `2**31 - 3` etc. Then the ""dynamically created"" objects won't be overwritten by `loaddata`.

However I do not know how autoincrement value will behave in this situation.

Please add features to make it possible."	New feature	closed	Database layer (models, ORM)	2.1	Normal	wontfix			Unreviewed	0	0	0	0	0	0
