Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_safe_settings' location has changed in Django 3.1 #1233

Merged
merged 1 commit into from Jan 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion debug_toolbar/panels/settings.py
@@ -1,11 +1,18 @@
from collections import OrderedDict

import django
from django.conf import settings
from django.utils.translation import gettext_lazy as _
from django.views.debug import get_safe_settings

from debug_toolbar.panels import Panel

if django.VERSION >= (3, 1):
from django.views.debug import get_default_exception_reporter_filter

get_safe_settings = get_default_exception_reporter_filter().get_safe_settings
else:
from django.views.debug import get_safe_settings


class SettingsPanel(Panel):
"""
Expand Down