From 6da8420635f968a028cf5d7523c981e3c2f32896 Mon Sep 17 00:00:00 2001 From: Brian Helba Date: Tue, 31 Aug 2021 22:07:33 -0400 Subject: [PATCH] Prevent warnings for settings deprecated in Django 2.2 Fixes #233. --- configurations/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configurations/base.py b/configurations/base.py index e54fcb4..a09af41 100644 --- a/configurations/base.py +++ b/configurations/base.py @@ -38,6 +38,10 @@ class ConfigurationBase(type): # transitional setting # https://docs.djangoproject.com/en/3.1/releases/3.1/#default-hashing-algorithm-settings "DEFAULT_HASHING_ALGORITHM", + # DEFAULT_CONTENT_TYPE and FILE_CHARSET are deprecated in + # Django 2.2 and are removed in Django 3.0 + "DEFAULT_CONTENT_TYPE", + "FILE_CHARSET", # When DEFAULT_AUTO_FIELD is not explicitly set, Django's emits a # system check warning models.W042. This warning should not be # suppressed, as downstream users are expected to make a decision.