mirror of
https://github.com/django/django.git
synced 2024-11-21 19:09:18 +01:00
Refs #32339 -- Updated formset docs to reflect default rendering as as_div.
This commit is contained in:
parent
8d7b1423f8
commit
c56e1273a9
@ -1005,10 +1005,11 @@ deal with the management form:
|
|||||||
The above ends up calling the :meth:`BaseFormSet.render` method on the formset
|
The above ends up calling the :meth:`BaseFormSet.render` method on the formset
|
||||||
class. This renders the formset using the template specified by the
|
class. This renders the formset using the template specified by the
|
||||||
:attr:`~BaseFormSet.template_name` attribute. Similar to forms, by default the
|
:attr:`~BaseFormSet.template_name` attribute. Similar to forms, by default the
|
||||||
formset will be rendered ``as_table``, with other helper methods of ``as_p``
|
formset will be rendered ``as_div``, with other helper methods of ``as_p``,
|
||||||
and ``as_ul`` being available. The rendering of the formset can be customized
|
``as_ul``, and ``as_table`` being available. The rendering of the formset can
|
||||||
by specifying the ``template_name`` attribute, or more generally by
|
be customized by specifying the ``template_name`` attribute, or more generally
|
||||||
:ref:`overriding the default template <overriding-built-in-formset-templates>`.
|
by :ref:`overriding the default template
|
||||||
|
<overriding-built-in-formset-templates>`.
|
||||||
|
|
||||||
.. _manually-rendered-can-delete-and-can-order:
|
.. _manually-rendered-can-delete-and-can-order:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user