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