summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2025-08-19 15:08:43 -0400
committerJacob Walls <jacobtylerwalls@gmail.com>2025-09-05 10:43:10 -0400
commit2a636118dacdcda074c99ebd50311d64a8cca367 (patch)
treef5b11c60f9fd598429d6ab60b35515a6c6d82256 /tests/admin_scripts
parent0ddbe12ea99a2dc1b757dc2015ba8bb6bfd9d653 (diff)
Fixed #36564 -- Changed DEFAULT_AUTO_FIELD from AutoField to BigAutoField.
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/tests.py6
1 files changed, 0 insertions, 6 deletions
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,