﻿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
1561	[patch] enhance inspectdb to reorder models and get a functional model immediately	mir@…	Adrian Holovaty	"inspectdb should order Models so that you can really use the result:

 * avoid forward dependencies
 * use unique `related_name` for multiple references to the same class

The attached patch attempts a smart sort, and figures out when a related_name is required. It also tries to handle circular foreign key references in a sensible way, i.e. adds comments about the problem and replaces the `ForeignKey` with a plain field.
"	enhancement	closed	Database layer (models, ORM)	magic-removal	normal	wontfix			Unreviewed	1	0	0	0	0	0
