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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/contenttypes/management.py b/django/contrib/contenttypes/management.py
index f492f54303..3572d93049 100644
--- a/django/contrib/contenttypes/management.py
+++ b/django/contrib/contenttypes/management.py
@@ -7,6 +7,7 @@ from django.db.models import get_apps, get_models, signals
def create_contenttypes(app, created_models, verbosity=2):
from django.contrib.contenttypes.models import ContentType
+ ContentType.objects.clear_cache()
app_models = get_models(app)
if not app_models:
return