diff --git a/cab/tests/settings.py b/cab/tests/settings.py index 7b8986b1..de2b5764 100644 --- a/cab/tests/settings.py +++ b/cab/tests/settings.py @@ -68,3 +68,5 @@ ('0.0', '0.0'), ('1.1', '1.1'), ) + +DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' diff --git a/djangosnippets/settings/base.py b/djangosnippets/settings/base.py index 731b6e78..e4d1ebc7 100644 --- a/djangosnippets/settings/base.py +++ b/djangosnippets/settings/base.py @@ -175,3 +175,5 @@ def user_url(user): 'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly' ] } + +DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'