diff options
| author | Tom Forbes <tom@tomforb.es> | 2020-07-12 13:59:57 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-12-15 11:25:46 +0100 |
| commit | b5e12d490af3debca8c55ab3c1698189fdedbbdb (patch) | |
| tree | 5fe3005ac567f3addf78b81ae033191e2fa642f4 /django/contrib/auth/apps.py | |
| parent | b960e4ed722a04a9db0d35293f76e253eedf9126 (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 'django/contrib/auth/apps.py')
| -rw-r--r-- | django/contrib/auth/apps.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/auth/apps.py b/django/contrib/auth/apps.py index b9d271bb1f..4e4ef06d27 100644 --- a/django/contrib/auth/apps.py +++ b/django/contrib/auth/apps.py @@ -11,6 +11,7 @@ from .signals import user_logged_in class AuthConfig(AppConfig): + default_auto_field = 'django.db.models.AutoField' name = 'django.contrib.auth' verbose_name = _("Authentication and Authorization") |
