Skip to content

Commit 20b9d91

Browse files
authored
Silence the MiddlewareMixin deprecation warning explicitly (#2416)
1 parent 7fae0e0 commit 20b9d91

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ setenv =
3939
error::PendingDeprecationWarning,\
4040
ignore:The RedirectsPanel is deprecated:DeprecationWarning,\
4141
# This can be removed when we're fully to 6.0
42-
ignore:The 'partial'and 'partialdef' template tags are now part of Django core:DeprecationWarning
42+
ignore:The 'partial'and 'partialdef' template tags are now part of Django core:DeprecationWarning,\
43+
# django-csp imports MiddlewareMixin from the deprecated location; not ours to fix
44+
ignore:Importing MiddlewareMixin from django.utils.deprecation is deprecated
4345
DB_NAME = {env:DB_NAME:debug_toolbar}
4446
DB_USER = {env:DB_USER:debug_toolbar}
4547
DB_HOST = {env:DB_HOST:localhost}

0 commit comments

Comments
 (0)