Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions debug_toolbar/panels/history/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def generate_stats(self, request, response):
{
"request_url": request.get_full_path(),
"request_method": request.method,
"status_code": response.status_code,
"data": data,
"time": timezone.now(),
}
Expand Down
1 change: 1 addition & 0 deletions debug_toolbar/templates/debug_toolbar/panels/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<th>{% trans "Method" %}</th>
<th>{% trans "Path" %}</th>
<th>{% trans "Request Variables" %}</th>
<th>{% trans "Status" %}</th>
<th>{% trans "Action" %}</th>
</tr>
</thead>
Expand Down
3 changes: 3 additions & 0 deletions debug_toolbar/templates/debug_toolbar/panels/history_tr.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
</table>
</div>
</td>
<td>
<p>{{ store_context.toolbar.stats.HistoryPanel.status_code|escape }}</p>
</td>
<td class="djdt-actions">
<form method="get" action="{% url 'djdt:history_sidebar' %}">
{{ store_context.form }}
Expand Down
1 change: 1 addition & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Next version
running with multiple processes.
* Fixed ``RENDER_PANELS`` functionality so that when ``True`` panels are
rendered during the request and not loaded asynchronously.
* HistoryPanel now shows status codes of responses.


3.2.1 (2021-04-14)
Expand Down