From b5e12d490af3debca8c55ab3c1698189fdedbbdb Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Sun, 12 Jul 2020 13:59:57 +0100 Subject: 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. --- tests/check_framework/apps.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/check_framework/apps.py (limited to 'tests/check_framework/apps.py') diff --git a/tests/check_framework/apps.py b/tests/check_framework/apps.py new file mode 100644 index 0000000000..c57994f722 --- /dev/null +++ b/tests/check_framework/apps.py @@ -0,0 +1,10 @@ +from django.apps import AppConfig + + +class CheckDefaultPKConfig(AppConfig): + name = 'check_framework' + + +class CheckPKConfig(AppConfig): + name = 'check_framework' + default_auto_field = 'django.db.models.BigAutoField' -- cgit v1.3