From 8e31bcfdefa1d1bab40d6fce1065a07c8f5af3ce Mon Sep 17 00:00:00 2001 From: Pablo Date: Sat, 5 Jun 2021 13:28:59 +0200 Subject: [PATCH] Add DEFAULT_AUTO_FIELD to settings (#271) --- cab/tests/settings.py | 2 ++ djangosnippets/settings/base.py | 2 ++ 2 files changed, 4 insertions(+) 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'