diff --git a/django/core/management.py b/django/core/management.py index f65f62a46e..5d38b7f5a4 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -764,7 +764,6 @@ class ModelErrorCollection: def get_validation_errors(outfile): "Validates all installed models. Writes errors, if any, to outfile. Returns number of errors." - import django.models from django.db import models e = ModelErrorCollection(outfile) module_list = models.get_installed_model_modules()