Django custom migration. custom_operations import LoadExtension class Migration .