Skip to content

Commit 44dff43

Browse files
authored
Merge branch 'main' into fix-database-store-panel-keyerror
2 parents 0cefbe7 + e2fd4c0 commit 44dff43

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ jobs:
8888
database: psycopg3
8989
- python-version: '3.13'
9090
database: postgis3
91+
- python-version: '3.13'
92+
database: postgresql
93+
env:
94+
DJANGO_SELENIUM_TESTS=true
9195

9296
services:
9397
postgres:
@@ -143,6 +147,7 @@ jobs:
143147
DB_BACKEND: ${{ matrix.database }}
144148
DB_HOST: localhost
145149
DB_PORT: 5432
150+
DJANGO_SELENIUM_TESTS: ${{ matrix.env.DJANGO_SELENIUM_TESTS }}
146151

147152
sqlite:
148153
runs-on: ubuntu-latest

docs/changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Pending
99
* Fixed KeyError when using DatabaseStore with dynamically added panels to
1010
DEBUG_TOOLBAR_PANELS. Also fixed history sidebar to only include enabled
1111
panels.
12+
* Moved the the import statement of ``debug_toolbar.urls`` to within the if
13+
statement's scope on the installation documentation.
1214

1315
6.0.0 (2025-07-22)
1416
------------------

docs/installation.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,10 @@ You should also modify your URLconf file:
183183
.. code-block:: python
184184
185185
from django.conf import settings
186-
from debug_toolbar.toolbar import debug_toolbar_urls
187186
188187
if not settings.TESTING:
188+
from debug_toolbar.toolbar import debug_toolbar_urls
189+
189190
urlpatterns = [
190191
*urlpatterns,
191192
] + debug_toolbar_urls()

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ passenv=
4242
setenv =
4343
PYTHONPATH = {toxinidir}
4444
PYTHONWARNINGS = d
45-
py311-dj42-postgresql: DJANGO_SELENIUM_TESTS = {env:DJANGO_SELENIUM_TESTS:true}
4645
DB_NAME = {env:DB_NAME:debug_toolbar}
4746
DB_USER = {env:DB_USER:debug_toolbar}
4847
DB_HOST = {env:DB_HOST:localhost}

0 commit comments

Comments
 (0)