﻿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
22983	Invalid import in a squashed migration of migrations having RunPython	Piotr Maliński	Andrew Godwin	"I've squashed migrations in one of my apps and I've noticed that every migration that had a custom function on RunPython resulted in an invalid import in the squashed migration like:
{{{
import my_app.migrations.0010_clean_propertyindex
}}}
and then it tries to use it:
{{{
migrations.RunPython(
            code=my_app.migrations.0010_clean_propertyindex.delete_indexes,
            reverse_code=None,
            atomic=True,
        ),
}}}

It's either a bug or all functions should not be in a file that starts with a digit. Either way squash should fail if it would have to make such import."	Bug	closed	Migrations	1.7-rc-1	Release blocker	fixed			Accepted	0	0	0	0	0	0
