From 7294f16ee507e26ecb1c89479e789d771e6fb48e Mon Sep 17 00:00:00 2001 From: Tomas Kubla Date: Wed, 7 Feb 2024 16:51:09 +0100 Subject: [PATCH 1/2] Drop RemovedInDjango50Warning from filterwarnings --- dojo/settings/settings.dist.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/dojo/settings/settings.dist.py b/dojo/settings/settings.dist.py index b82dbfcb0e8..4a7301dd3ec 100644 --- a/dojo/settings/settings.dist.py +++ b/dojo/settings/settings.dist.py @@ -1700,10 +1700,3 @@ def saml2_attrib_map_format(dict): # Reference issue: https://github.com/jazzband/django-polymorphic/issues/229 warnings.filterwarnings("ignore", message="polymorphic.base.ManagerInheritanceWarning.*") warnings.filterwarnings("ignore", message="PolymorphicModelBase._default_manager.*") - - -# TODO - these warnings needs to be removed after all warnings have been removed -if DEBUG: - from django.utils.deprecation import RemovedInDjango50Warning - warnings.filterwarnings("ignore", category=RemovedInDjango50Warning) - warnings.filterwarnings("ignore", message="unclosed file .+") From 9496f0c63424374a263e0de3620ecabff626154a Mon Sep 17 00:00:00 2001 From: Tomas Kubla Date: Wed, 7 Feb 2024 17:37:36 +0100 Subject: [PATCH 2/2] Remove CryptPasswordHasher from PASSWORD_HASHERS --- dojo/settings/settings.dist.py | 1 - 1 file changed, 1 deletion(-) diff --git a/dojo/settings/settings.dist.py b/dojo/settings/settings.dist.py index 4a7301dd3ec..2806c3da9e7 100644 --- a/dojo/settings/settings.dist.py +++ b/dojo/settings/settings.dist.py @@ -490,7 +490,6 @@ def generate_url(scheme, double_slashes, user, password, host, port, path, param 'django.contrib.auth.hashers.MD5PasswordHasher', 'django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher', 'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher', - 'django.contrib.auth.hashers.CryptPasswordHasher', ] SOCIAL_AUTH_PIPELINE = (