mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
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.
This commit is contained in:
committed by
Mariusz Felisiak
parent
b960e4ed72
commit
b5e12d490a
10
tests/check_framework/apps.py
Normal file
10
tests/check_framework/apps.py
Normal file
@@ -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'
|
||||
Reference in New Issue
Block a user