mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +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:
parent
b960e4ed72
commit
b5e12d490a
28 changed files with 415 additions and 11 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue