summaryrefslogtreecommitdiff
path: root/tests/apps/apps.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/apps/apps.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/apps/apps.py')
-rw-r--r--tests/apps/apps.py5
1 files changed, 5 insertions, 0 deletions
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'