diff --git a/debug_toolbar/panels/history/panel.py b/debug_toolbar/panels/history/panel.py index 0cc352e8b..541c59136 100644 --- a/debug_toolbar/panels/history/panel.py +++ b/debug_toolbar/panels/history/panel.py @@ -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(), } diff --git a/debug_toolbar/templates/debug_toolbar/panels/history.html b/debug_toolbar/templates/debug_toolbar/panels/history.html index f5e967a17..84c6cb5bd 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/history.html +++ b/debug_toolbar/templates/debug_toolbar/panels/history.html @@ -10,6 +10,7 @@ {% trans "Method" %} {% trans "Path" %} {% trans "Request Variables" %} + {% trans "Status" %} {% trans "Action" %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/history_tr.html b/debug_toolbar/templates/debug_toolbar/panels/history_tr.html index 9ce984396..31793472a 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/history_tr.html +++ b/debug_toolbar/templates/debug_toolbar/panels/history_tr.html @@ -38,6 +38,9 @@ + +

{{ store_context.toolbar.stats.HistoryPanel.status_code|escape }}

+
{{ store_context.form }} diff --git a/docs/changes.rst b/docs/changes.rst index e8c7f35cf..6ffe838c4 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -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)