From 2a636118dacdcda074c99ebd50311d64a8cca367 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 19 Aug 2025 15:08:43 -0400 Subject: Fixed #36564 -- Changed DEFAULT_AUTO_FIELD from AutoField to BigAutoField. --- tests/admin_scripts/tests.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tests/admin_scripts') diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 97d2d7cf7e..3718354dc7 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -75,7 +75,6 @@ class AdminScriptTestCase(SimpleTestCase): settings_file.write("%s\n" % extra) exports = [ "DATABASES", - "DEFAULT_AUTO_FIELD", "ROOT_URLCONF", "SECRET_KEY", "USE_TZ", @@ -3127,11 +3126,6 @@ class StartApp(AdminScriptTestCase): with open(os.path.join(app_path, "apps.py")) as f: content = f.read() self.assertIn("class NewAppConfig(AppConfig)", content) - if HAS_BLACK: - test_str = 'default_auto_field = "django.db.models.BigAutoField"' - else: - test_str = "default_auto_field = 'django.db.models.BigAutoField'" - self.assertIn(test_str, content) self.assertIn( 'name = "new_app"' if HAS_BLACK else "name = 'new_app'", content, -- cgit v1.3