summaryrefslogtreecommitdiff
path: root/tests/test_sqlite.py
diff options
context:
space:
mode:
authorTom Forbes <tom@tomforb.es>2020-07-12 13:59:57 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-12-15 11:25:46 +0100
commitb5e12d490af3debca8c55ab3c1698189fdedbbdb (patch)
tree5fe3005ac567f3addf78b81ae033191e2fa642f4 /tests/test_sqlite.py
parentb960e4ed722a04a9db0d35293f76e253eedf9126 (diff)
Fixed #31007 -- Allowed specifying type of auto-created primary keys.
This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField.
Diffstat (limited to 'tests/test_sqlite.py')
-rw-r--r--tests/test_sqlite.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_sqlite.py b/tests/test_sqlite.py
index f1b65f7d01..099f37e56d 100644
--- a/tests/test_sqlite.py
+++ b/tests/test_sqlite.py
@@ -27,3 +27,5 @@ SECRET_KEY = "django_tests_secret_key"
PASSWORD_HASHERS = [
'django.contrib.auth.hashers.MD5PasswordHasher',
]
+
+DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'