﻿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
30580	django.db.migrations.optimizer error in indention	sijianlin	nobody	"
The command ""makemigrations"" yields operations in wrong order; base class gets created later than ones depending on it. After tracing the issue we are certain that the error comes from django.db.migrations.optimizer. In the file optimizer.py method optimizer_inner,the ""else"" clause is clearly misaligned. We currently disable the optimization to get the migration operations in correct order. "	Bug	closed	Migrations	2.2	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
