Skip to content

Commit fae5c33

Browse files
authored
Add default_auto_field in apps.py for Django 3.2 compatibility (#154)
1 parent 5d8b794 commit fae5c33

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [Unreleased]
44

5+
Define `AppConfig.default_auto_field` as [required since Django 3.2](https://docs.djangoproject.com/en/3.2/releases/3.2/#customizing-type-of-auto-created-primary-keys).
6+
57
## [0.5.0] - 2021-06-04
68

79
### Added

pattern_library/apps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33

44
class PatternLibraryAppConfig(AppConfig):
55
name = 'pattern_library'
6+
default_auto_field = 'django.db.models.AutoField'

0 commit comments

Comments
 (0)