Skip to content

Commit

Permalink
INTERNAL_IPS may not be a list
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed May 27, 2024
1 parent 4808add commit 782bdd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion debug_toolbar/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def show_toolbar(request):
"""
Default function to determine whether to show the toolbar on a given page.
"""
internal_ips = settings.INTERNAL_IPS.copy()
internal_ips = list(settings.INTERNAL_IPS)

try:
# This is a hack for docker installations. It attempts to look
Expand Down
1 change: 1 addition & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Pending
-------

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


4.4.1 (2024-05-26)
Expand Down

0 comments on commit 782bdd9

Please sign in to comment.