Skip to content

Commit

Permalink
Try to exclude pkg_resources warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik committed Jul 8, 2024
1 parent df1af6c commit 5fcbb12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dojo/settings/settings.dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -1744,6 +1744,9 @@ def saml2_attrib_map_format(dict):
warnings.filterwarnings("ignore", message="polymorphic.base.ManagerInheritanceWarning.*")
warnings.filterwarnings("ignore", message="PolymorphicModelBase._default_manager.*")

# TODO - remove this, it is only for testing that following error is the only stopper for upgrade to py3.12
warnings.filterwarnings("ignore", message="pkg_resources is deprecated as an API")

# This setting is here to override default renderer of forms (use div-based, instred of table-based).
# It has effect only on templates that use "{{ form }}" in the body. Only "Delete forms" now.
# The setting is here to avoid RemovedInDjango50Warning. It is here only for transition period.
Expand Down

0 comments on commit 5fcbb12

Please sign in to comment.