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/apps/apps.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/apps/apps.py') diff --git a/tests/apps/apps.py b/tests/apps/apps.py index d322b28f2b..efd2983779 100644 --- a/tests/apps/apps.py +++ b/tests/apps/apps.py @@ -31,3 +31,8 @@ class PlainAppsConfig(AppConfig): class RelabeledAppsConfig(AppConfig): name = 'apps' label = 'relabeled' + + +class ModelPKAppsConfig(AppConfig): + name = 'apps' + default_auto_field = 'django.db.models.BigAutoField' -- cgit v1.3