﻿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
26936	Stale content type deletion stops working if all models in an app are deleted	Baptiste Mispelon	Pavel	"Steps to reproduce:

1) Create an app with one model in its `models.py`
2) Add it to `settings.INSTALLED_APPS`, run `makemakigrations`, and `migrate`
3) Delete the model from `models.py`, run `makemigrations`, then `migrate`



At step 3), Django deletes the model from the database (as expected) but doesn't prompt the user to delete the now stale content type (as normally happens when you run `migrate`).


I believe this is called by the `if not app_config.models_module: return` statement in `update_contenttypes()` [1]

[1] https://github.com/django/django/blob/master/django/contrib/contenttypes/management.py#L95-L96"	Bug	closed	contrib.contenttypes	1.9	Normal	fixed			Ready for checkin	1	0	0	0	0	0
