Skip to content

Commit

Permalink
Add DEFAULT_AUTO_FIELD to settings (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppmdo committed Jun 5, 2021
1 parent eabade0 commit 8e31bcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cab/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@
('0.0', '0.0'),
('1.1', '1.1'),
)

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
2 changes: 2 additions & 0 deletions djangosnippets/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,5 @@ def user_url(user):
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
]
}

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

0 comments on commit 8e31bcf

Please sign in to comment.