﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36996	Apps registry public API methods lack input validation	Nicholas Salzman		"The Apps class in django.apps.registry accepts arbitrary argument types on its public API methods. Passing a non-string or empty string produces confusing errors deep in the call stack rather than clear messages at the API boundary.

For example, apps.get_app_config(42) raises KeyError: 42 from the dict lookup inside the method. With validation, it would raise TypeError: app_label must be a string, not int. at the entry point.

Affected methods: get_app_config(), get_model(), register_model(), is_installed(), lazy_model_operation().

I can submit a PR that already passed your tests, other than not having created a ticket first! :)

Nicholas"	Cleanup/optimization	closed	Core (Other)	6.0	Normal	invalid			Unreviewed	0	0	0	0	0	0
