diff --git a/debug_toolbar/templates/debug_toolbar/panels/history.html b/debug_toolbar/templates/debug_toolbar/panels/history.html index 84c6cb5bd..840f6c9f4 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/history.html +++ b/debug_toolbar/templates/debug_toolbar/panels/history.html @@ -1,6 +1,6 @@ {% load i18n %}{% load static %}
- {{ refresh_form }} + {{ refresh_form.as_div }}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/history_tr.html b/debug_toolbar/templates/debug_toolbar/panels/history_tr.html index 31793472a..eff544f1a 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/history_tr.html +++ b/debug_toolbar/templates/debug_toolbar/panels/history_tr.html @@ -43,7 +43,7 @@ diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index 6080e9f19..e5bf0b7f6 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -77,7 +77,7 @@ {% if query.params %} {% if query.is_select %} - {{ query.form }} + {{ query.form.as_div }} {% if query.vendor == 'mysql' %} diff --git a/docs/changes.rst b/docs/changes.rst index 3ffa31dea..940a706ef 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -9,6 +9,7 @@ Pending workaround for ``INTERNAL_IPS``. * Display a better error message when the toolbar's requests return invalid json. +* Render forms with ``as_div`` to silence Django 5.0 deprecation warnings. 4.3.0 (2024-02-01) ------------------
- {{ store_context.form }} + {{ store_context.form.as_div }}