summaryrefslogtreecommitdiff
path: root/django/contrib/contenttypes/management.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/contenttypes/management.py')
-rw-r--r--django/contrib/contenttypes/management.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/django/contrib/contenttypes/management.py b/django/contrib/contenttypes/management.py
index 91984a88df..f705330137 100644
--- a/django/contrib/contenttypes/management.py
+++ b/django/contrib/contenttypes/management.py
@@ -1,6 +1,5 @@
from django.apps import apps
from django.db import DEFAULT_DB_ALIAS, router
-from django.db.migrations.loader import is_latest_migration_applied
from django.db.models import signals
from django.utils.encoding import smart_text
from django.utils import six
@@ -12,10 +11,6 @@ def update_contenttypes(app_config, verbosity=2, interactive=True, using=DEFAULT
Creates content types for models in the given app, removing any model
entries that no longer have a matching model class.
"""
- # TODO: Remove when migration plan / state is passed (#24100).
- if not is_latest_migration_applied('contenttypes'):
- return
-
if not app_config.models_module:
return