1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #32339 -- Changed default form and formset rendering style to div-based.

Per deprecation timeline.

This also removes "django/forms/default.html" and
"django/forms/formsets/default.html" templates.
This commit is contained in:
Mariusz Felisiak
2023-01-13 09:32:35 +01:00
parent b5ac6e78f8
commit 98756c685e
13 changed files with 12 additions and 96 deletions

View File

@@ -51,27 +51,13 @@ should return a rendered templates (as a string) or raise
The default name of the template to use to render a form.
Defaults to ``"django/forms/default.html"``, which is a proxy for
``"django/forms/table.html"``.
.. deprecated:: 4.1
The ``"django/forms/default.html"`` template is deprecated and will be
removed in Django 5.0. The default will become
``"django/forms/div.html"`` at that time.
Defaults to ``"django/forms/div.html"`` template.
.. attribute:: formset_template_name
The default name of the template to use to render a formset.
Defaults to ``"django/forms/formsets/default.html"``, which is a proxy
for ``"django/forms/formsets/table.html"``.
.. deprecated:: 4.1
The ``"django/forms/formset/default.html"`` template is deprecated and
will be removed in Django 5.0. The default will become
``"django/forms/formset/div.html"`` template.
Defaults to ``"django/forms/formsets/div.html"`` template.
.. method:: get_template(template_name)