From 586a30d8e9a12986d4219df41ee1cd2754ab066f Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 7 Jul 2021 08:49:22 +0200 Subject: [PATCH] DEFAULT_AUTO_FIELD added to suppress warning from django 3.2 --- TODO | 4 ---- foerderbarometer/settings_development.py | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index 11c829d..c236669 100644 --- a/TODO +++ b/TODO @@ -21,7 +21,3 @@ other known problems: - we should add dates to the outputs, to make it more useful in logfiles - maybe change logo in browser dark mode to https://upload.wikimedia.org/wikipedia/commons/2/2a/Wmde_logo_vert_weiss.png - -- warning from django 3.2: -input.BusinessCard: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. - HINT: Configure the DEFAULT_AUTO_FIELD setting or the InputConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. diff --git a/foerderbarometer/settings_development.py b/foerderbarometer/settings_development.py index e956a23..3b3ff79 100644 --- a/foerderbarometer/settings_development.py +++ b/foerderbarometer/settings_development.py @@ -146,3 +146,6 @@ USE_TZ = True # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/' + +# needed since django 3.2 +DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'