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