call the executor.loader.get_migration_by_prefix with app_label and migration_name, substitute the result for migration.
migration = executor . loader . get_migration_by_prefix ( app_label , migration_name )