Fix an import issue in the Django migrations.