Fixes #21115 -- Fixes NameError in migrate --list command

See ticket https://code.djangoproject.com/ticket/21115