Browse Source

Set default auto field if primary key is missing

pull/184/head
Lumir Balhar 4 years ago
parent
commit
3e8476d9fb
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      project/settings.py

+ 2
- 0
project/settings.py View File

@ -88,6 +88,8 @@ DATABASES = {
'default': database.config()
}
# https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
# Password validation
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators


Loading…
Cancel
Save