Skip to content

Commit 7885071

Browse files
Merge branch 'django-commons:main' into type-hints/toolbar
2 parents 53004a4 + 62ef502 commit 7885071

File tree

14 files changed

+147
-56
lines changed

14 files changed

+147
-56
lines changed

.git-blame-ignore-revs

Whitespace-only changes.

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103

104104
services:
105105
postgres:
106-
image: postgis/postgis:14-3.1
106+
image: postgis/postgis:17-3.5
107107
env:
108108
POSTGRES_DB: debug_toolbar
109109
POSTGRES_USER: debug_toolbar

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ repos:
3434
- id: biome-check
3535
verbose: true
3636
- repo: https://github.com/astral-sh/ruff-pre-commit
37-
rev: 'v0.13.3'
37+
rev: 'v0.14.0'
3838
hooks:
3939
- id: ruff
4040
args: [--fix, --exit-non-zero-on-fix]
4141
- id: ruff-format
4242
- repo: https://github.com/tox-dev/pyproject-fmt
43-
rev: v2.7.0
43+
rev: v2.10.0
4444
hooks:
4545
- id: pyproject-fmt
4646
- repo: https://github.com/abravalheri/validate-pyproject

debug_toolbar/forms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
from django import forms
44
from django.core import signing
55
from django.core.exceptions import ValidationError
6-
from django.utils.encoding import force_str
6+
7+
from debug_toolbar.sanitize import force_str
78

89

910
class SignedDataForm(forms.Form):

debug_toolbar/locale/en/LC_MESSAGES/django.po

Lines changed: 101 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Django Debug Toolbar\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2024-08-06 07:12-0500\n"
9+
"POT-Creation-Date: 2025-10-16 19:11-0500\n"
1010
"PO-Revision-Date: 2012-03-31 20:10+0000\n"
1111
"Last-Translator: \n"
1212
"Language-Team: \n"
@@ -20,6 +20,14 @@ msgstr ""
2020
msgid "Debug Toolbar"
2121
msgstr ""
2222

23+
#: models.py:11
24+
msgid "history entry"
25+
msgstr ""
26+
27+
#: models.py:12
28+
msgid "history entries"
29+
msgstr ""
30+
2331
#: panels/alerts.py:67
2432
#, python-brace-format
2533
msgid ""
@@ -44,163 +52,175 @@ msgstr ""
4452
msgid "Alerts"
4553
msgstr ""
4654

47-
#: panels/cache.py:168
55+
#: panels/cache.py:170
4856
msgid "Cache"
4957
msgstr ""
5058

51-
#: panels/cache.py:174
59+
#: panels/cache.py:177
5260
#, python-format
5361
msgid "%(cache_calls)d call in %(time).2fms"
5462
msgid_plural "%(cache_calls)d calls in %(time).2fms"
5563
msgstr[0] ""
5664
msgstr[1] ""
5765

58-
#: panels/cache.py:183
66+
#: panels/cache.py:186
5967
#, python-format
6068
msgid "Cache calls from %(count)d backend"
6169
msgid_plural "Cache calls from %(count)d backends"
6270
msgstr[0] ""
6371
msgstr[1] ""
6472

73+
#: panels/community.py:13
74+
msgid "Community"
75+
msgstr ""
76+
6577
#: panels/headers.py:31
6678
msgid "Headers"
6779
msgstr ""
6880

69-
#: panels/history/panel.py:19 panels/history/panel.py:20
81+
#: panels/history/panel.py:20 panels/history/panel.py:21
7082
msgid "History"
7183
msgstr ""
7284

73-
#: panels/profiling.py:140
85+
#: panels/profiling.py:156
7486
msgid "Profiling"
7587
msgstr ""
7688

77-
#: panels/redirects.py:17
89+
#: panels/redirects.py:18
7890
msgid "Intercept redirects"
7991
msgstr ""
8092

8193
#: panels/request.py:16
8294
msgid "Request"
8395
msgstr ""
8496

85-
#: panels/request.py:38
97+
#: panels/request.py:36
8698
msgid "<no view>"
8799
msgstr ""
88100

89-
#: panels/request.py:55
101+
#: panels/request.py:53
90102
msgid "<unavailable>"
91103
msgstr ""
92104

93-
#: panels/settings.py:17
105+
#: panels/settings.py:19
94106
msgid "Settings"
95107
msgstr ""
96108

97-
#: panels/settings.py:20
109+
#: panels/settings.py:22
98110
#, python-format
99111
msgid "Settings from %s"
100112
msgstr ""
101113

102-
#: panels/signals.py:57
114+
#: panels/signals.py:59
103115
#, python-format
104116
msgid "%(num_receivers)d receiver of 1 signal"
105117
msgid_plural "%(num_receivers)d receivers of 1 signal"
106118
msgstr[0] ""
107119
msgstr[1] ""
108120

109-
#: panels/signals.py:62
121+
#: panels/signals.py:64
110122
#, python-format
111123
msgid "%(num_receivers)d receiver of %(num_signals)d signals"
112124
msgid_plural "%(num_receivers)d receivers of %(num_signals)d signals"
113125
msgstr[0] ""
114126
msgstr[1] ""
115127

116-
#: panels/signals.py:67
128+
#: panels/signals.py:69
117129
msgid "Signals"
118130
msgstr ""
119131

120-
#: panels/sql/panel.py:30 panels/sql/panel.py:41
132+
#: panels/sql/forms.py:56
133+
msgid "Data for this panel isn't available anymore."
134+
msgstr ""
135+
136+
#: panels/sql/forms.py:68
137+
msgid "Invalid query id."
138+
msgstr ""
139+
140+
#: panels/sql/panel.py:32 panels/sql/panel.py:43
121141
msgid "Read uncommitted"
122142
msgstr ""
123143

124-
#: panels/sql/panel.py:31 panels/sql/panel.py:43
144+
#: panels/sql/panel.py:33 panels/sql/panel.py:45
125145
msgid "Read committed"
126146
msgstr ""
127147

128-
#: panels/sql/panel.py:32 panels/sql/panel.py:45
148+
#: panels/sql/panel.py:34 panels/sql/panel.py:47
129149
msgid "Repeatable read"
130150
msgstr ""
131151

132-
#: panels/sql/panel.py:33 panels/sql/panel.py:47
152+
#: panels/sql/panel.py:35 panels/sql/panel.py:49
133153
msgid "Serializable"
134154
msgstr ""
135155

136-
#: panels/sql/panel.py:39
156+
#: panels/sql/panel.py:41
137157
msgid "Autocommit"
138158
msgstr ""
139159

140-
#: panels/sql/panel.py:61 panels/sql/panel.py:71
160+
#: panels/sql/panel.py:63 panels/sql/panel.py:73
141161
msgid "Idle"
142162
msgstr ""
143163

144-
#: panels/sql/panel.py:62 panels/sql/panel.py:72
164+
#: panels/sql/panel.py:64 panels/sql/panel.py:74
145165
msgid "Active"
146166
msgstr ""
147167

148-
#: panels/sql/panel.py:63 panels/sql/panel.py:73
168+
#: panels/sql/panel.py:65 panels/sql/panel.py:75
149169
msgid "In transaction"
150170
msgstr ""
151171

152-
#: panels/sql/panel.py:64 panels/sql/panel.py:74
172+
#: panels/sql/panel.py:66 panels/sql/panel.py:76
153173
msgid "In error"
154174
msgstr ""
155175

156-
#: panels/sql/panel.py:65 panels/sql/panel.py:75
176+
#: panels/sql/panel.py:67 panels/sql/panel.py:77
157177
msgid "Unknown"
158178
msgstr ""
159179

160-
#: panels/sql/panel.py:162
180+
#: panels/sql/panel.py:165
161181
msgid "SQL"
162182
msgstr ""
163183

164-
#: panels/sql/panel.py:168
184+
#: panels/sql/panel.py:172
165185
#, python-format
166186
msgid "%(query_count)d query in %(sql_time).2fms"
167187
msgid_plural "%(query_count)d queries in %(sql_time).2fms"
168188
msgstr[0] ""
169189
msgstr[1] ""
170190

171-
#: panels/sql/panel.py:180
191+
#: panels/sql/panel.py:184
172192
#, python-format
173193
msgid "SQL queries from %(count)d connection"
174194
msgid_plural "SQL queries from %(count)d connections"
175195
msgstr[0] ""
176196
msgstr[1] ""
177197

178-
#: panels/staticfiles.py:82
198+
#: panels/staticfiles.py:47
179199
#, python-format
180200
msgid "Static files (%(num_found)s found, %(num_used)s used)"
181201
msgstr ""
182202

183-
#: panels/staticfiles.py:103
203+
#: panels/staticfiles.py:81
184204
msgid "Static files"
185205
msgstr ""
186206

187-
#: panels/staticfiles.py:109
207+
#: panels/staticfiles.py:87
188208
#, python-format
189209
msgid "%(num_used)s file used"
190210
msgid_plural "%(num_used)s files used"
191211
msgstr[0] ""
192212
msgstr[1] ""
193213

194-
#: panels/templates/panel.py:101
214+
#: panels/templates/panel.py:104
195215
msgid "Templates"
196216
msgstr ""
197217

198-
#: panels/templates/panel.py:106
218+
#: panels/templates/panel.py:109
199219
#, python-format
200220
msgid "Templates (%(num_templates)s rendered)"
201221
msgstr ""
202222

203-
#: panels/templates/panel.py:195
223+
#: panels/templates/panel.py:199
204224
msgid "No origin"
205225
msgstr ""
206226

@@ -266,23 +286,23 @@ msgstr ""
266286
msgid "%(vcsw)d voluntary, %(ivcsw)d involuntary"
267287
msgstr ""
268288

269-
#: panels/versions.py:19
289+
#: panels/versions.py:21
270290
msgid "Versions"
271291
msgstr ""
272292

273-
#: templates/debug_toolbar/base.html:23
293+
#: templates/debug_toolbar/base.html:22
274294
msgid "Hide toolbar"
275295
msgstr ""
276296

277-
#: templates/debug_toolbar/base.html:23
297+
#: templates/debug_toolbar/base.html:22
278298
msgid "Hide"
279299
msgstr ""
280300

281-
#: templates/debug_toolbar/base.html:25 templates/debug_toolbar/base.html:26
301+
#: templates/debug_toolbar/base.html:24 templates/debug_toolbar/base.html:25
282302
msgid "Toggle Theme"
283303
msgstr ""
284304

285-
#: templates/debug_toolbar/base.html:35
305+
#: templates/debug_toolbar/base.html:34
286306
msgid "Show toolbar"
287307
msgstr ""
288308

@@ -353,6 +373,44 @@ msgstr ""
353373
msgid "Backend"
354374
msgstr ""
355375

376+
#: templates/debug_toolbar/panels/community.html:5
377+
msgid "Community & Contribution"
378+
msgstr ""
379+
380+
#: templates/debug_toolbar/panels/community.html:8
381+
msgid ""
382+
"Want to contribute to Django Debug Toolbar? Get involved in our community!"
383+
msgstr ""
384+
385+
#: templates/debug_toolbar/panels/community.html:14
386+
msgid "Join Discussions"
387+
msgstr ""
388+
389+
#: templates/debug_toolbar/panels/community.html:19
390+
msgid "View Issues"
391+
msgstr ""
392+
393+
#: templates/debug_toolbar/panels/community.html:24
394+
msgid "Contribution Guide"
395+
msgstr ""
396+
397+
#: templates/debug_toolbar/panels/community.html:31
398+
msgid "Django Debug Toolbar Documentation"
399+
msgstr ""
400+
401+
#: templates/debug_toolbar/panels/community.html:34
402+
msgid ""
403+
"Explore the official documentation to learn more about Django Debug Toolbar."
404+
msgstr ""
405+
406+
#: templates/debug_toolbar/panels/community.html:39
407+
msgid "Read Documentation"
408+
msgstr ""
409+
410+
#: templates/debug_toolbar/panels/community.html:44
411+
msgid "How to Use Django Debug Toolbar"
412+
msgstr ""
413+
356414
#: templates/debug_toolbar/panels/headers.html:3
357415
msgid "Request headers"
358416
msgstr ""
@@ -551,7 +609,7 @@ msgstr ""
551609
msgid "No SQL queries were recorded during this request."
552610
msgstr ""
553611

554-
#: templates/debug_toolbar/panels/sql_explain.html:4
612+
#: templates/debug_toolbar/panels/sql_explain.html:3
555613
msgid "SQL explained"
556614
msgstr ""
557615

@@ -567,15 +625,15 @@ msgstr ""
567625
msgid "Database"
568626
msgstr ""
569627

570-
#: templates/debug_toolbar/panels/sql_profile.html:4
628+
#: templates/debug_toolbar/panels/sql_profile.html:3
571629
msgid "SQL profiled"
572630
msgstr ""
573631

574632
#: templates/debug_toolbar/panels/sql_profile.html:37
575633
msgid "Error"
576634
msgstr ""
577635

578-
#: templates/debug_toolbar/panels/sql_select.html:4
636+
#: templates/debug_toolbar/panels/sql_select.html:3
579637
msgid "SQL selected"
580638
msgstr ""
581639

@@ -626,7 +684,7 @@ msgstr[1] ""
626684
msgid "Location"
627685
msgstr ""
628686

629-
#: templates/debug_toolbar/panels/template_source.html:4
687+
#: templates/debug_toolbar/panels/template_source.html:3
630688
msgid "Template source:"
631689
msgstr ""
632690

@@ -696,7 +754,7 @@ msgid ""
696754
"redirect as normal."
697755
msgstr ""
698756

699-
#: views.py:16
757+
#: views.py:18
700758
msgid ""
701759
"Data for this panel isn't available anymore. Please reload the page and "
702760
"retry."

debug_toolbar/panels/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from django.utils.encoding import force_str
21
from django.utils.translation import gettext_lazy as _
32
from django.views.debug import get_default_exception_reporter_filter
43

54
from debug_toolbar.panels import Panel
5+
from debug_toolbar.sanitize import force_str
66

77
get_safe_settings = get_default_exception_reporter_filter().get_safe_settings
88

0 commit comments

Comments
 (0)