1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #35680 -- Sorted shell default autoimports to prevent isort mismatches.

This commit is contained in:
nessita
2025-07-18 08:47:44 -03:00
committed by GitHub
parent be8c9b19ba
commit e767bd6838
2 changed files with 4 additions and 4 deletions

View File

@@ -355,7 +355,7 @@ class ShellCommandAutoImportsTestCase(SimpleTestCase):
" import shell\n"
" import django\n"
" from django.conf import settings\n"
" from django.db import connection, reset_queries, models\n"
" from django.db import connection, models, reset_queries\n"
" from django.db.models import functions\n"
" from django.utils import timezone\n"
" from django.contrib.contenttypes.models import ContentType\n"
@@ -411,7 +411,7 @@ class ShellCommandAutoImportsTestCase(SimpleTestCase):
1: "6 objects imported automatically (use -v 2 for details).",
2: "6 objects imported automatically:\n\n"
" from django.conf import settings\n"
" from django.db import connection, reset_queries, models\n"
" from django.db import connection, models, reset_queries\n"
" from django.db.models import functions\n"
" from django.utils import timezone",
}