Skip to content

Commit 782bdd9

Browse files
committed
INTERNAL_IPS may not be a list
1 parent 4808add commit 782bdd9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

debug_toolbar/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def show_toolbar(request):
2020
"""
2121
Default function to determine whether to show the toolbar on a given page.
2222
"""
23-
internal_ips = settings.INTERNAL_IPS.copy()
23+
internal_ips = list(settings.INTERNAL_IPS)
2424

2525
try:
2626
# This is a hack for docker installations. It attempts to look

docs/changes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Pending
55
-------
66

77
* Removed some CSS which wasn't carefully limited to the toolbar's elements.
8+
* Stopped assuming that ``INTERNAL_IPS`` is a list.
89

910

1011
4.4.1 (2024-05-26)

0 commit comments

Comments
 (0)