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:08 +0100 |
| commit | 4038a8df0b8c20624ba826cf9af8f532e5a51aaa (patch) | |
| tree | dbfb3f4ea46f50ee0d77f5cec1eedbbff5c4e200 /docs | |
| parent | f9f009234641f59434863f0ae07675c7865a4928 (diff) | |
Refs #32339 -- Doc'd BaseFormSet.as_div()
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/forms/formsets.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt index dee1af81a4..d974d72f76 100644 --- a/docs/topics/forms/formsets.txt +++ b/docs/topics/forms/formsets.txt @@ -892,14 +892,18 @@ 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() + + Renders the formset with the :attr:`.template_name_div` template. + .. method:: BaseFormSet.as_p() Renders the formset with the :attr:`.template_name_p` template. |
