diff options
| author | David Smith <smithdc@gmail.com> | 2023-02-12 13:20:39 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-15 09:24:59 +0100 |
| commit | ce10686604de686e2bfb8ff8ead1c5604e0fbf0b (patch) | |
| tree | 4fe02d772a8f0f32336d1697f4c9c7fda6e00044 /docs/topics | |
| parent | 389318d1187e36be6944e14ddcc4a1e917a8a105 (diff) | |
[4.2.x] Refs #32339 -- Doc'd BaseFormSet.as_div()
Backport of 4038a8df0b8c20624ba826cf9af8f532e5a51aaa from main
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/forms/formsets.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt index 47506e8eca..173c3191c3 100644 --- a/docs/topics/forms/formsets.txt +++ b/docs/topics/forms/formsets.txt @@ -904,14 +904,20 @@ Formsets have the following attributes and methods associated with rendering: .. method:: BaseFormSet.render(template_name=None, context=None, renderer=None) - The render method is called by ``__str__`` as well as the :meth:`.as_p`, - :meth:`.as_ul`, and :meth:`.as_table` methods. All arguments are optional - and will default to: + The render method is called by ``__str__`` as well as the :meth:`.as_div`, + :meth:`.as_p`, :meth:`.as_ul`, and :meth:`.as_table` methods. All arguments + are optional and will default to: * ``template_name``: :attr:`.template_name` * ``context``: Value returned by :meth:`.get_context` * ``renderer``: Value returned by :attr:`.renderer` +.. method:: BaseFormSet.as_div() + + .. versionadded:: 4.1 + + Renders the formset with the :attr:`.template_name_div` template. + .. method:: BaseFormSet.as_p() Renders the formset with the :attr:`.template_name_p` template. |
