Skip to content

Commit 96a6898

Browse files
committed
Avoid warnings on example when used with Django 3.2+
1 parent 21c210b commit 96a6898

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/example/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
}
8787
}
8888

89+
# Use default autofield when PK is not defined (Django 3.2+)
90+
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
91+
8992

9093
# Password validation
9194
# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators

0 commit comments

Comments
 (0)