From c7d5dcb79fe8d86d8a550eae0fc5282b631a7bbc Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Wed, 15 Jul 2026 16:22:20 +0200 Subject: [PATCH] Silence the MiddlewareMixin deprecation warning explicitly --- tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index dec7ec193..1aeeef786 100644 --- a/tox.ini +++ b/tox.ini @@ -39,7 +39,9 @@ setenv = error::PendingDeprecationWarning,\ ignore:The RedirectsPanel is deprecated:DeprecationWarning,\ # This can be removed when we're fully to 6.0 - ignore:The 'partial'and 'partialdef' template tags are now part of Django core:DeprecationWarning + ignore:The 'partial'and 'partialdef' template tags are now part of Django core:DeprecationWarning,\ + # django-csp imports MiddlewareMixin from the deprecated location; not ours to fix + ignore:Importing MiddlewareMixin from django.utils.deprecation is deprecated DB_NAME = {env:DB_NAME:debug_toolbar} DB_USER = {env:DB_USER:debug_toolbar} DB_HOST = {env:DB_HOST:localhost}