Fixed #22862 -- Added --noinput option to makemigrations.

Thanks artortenburger for the report.