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:26:17 +0100 |
commit | 7fd69e52a53bba9a0c7f29ef283555a9cc9c7f10 (patch) | |
tree | c3ff6fc183149e8fb3f8065de62e0f0596ed1189 | |
parent | 991461a3b371d023b66a6fa098b5b219b1cf4e7a (diff) | |
download | django-7fd69e52a53bba9a0c7f29ef283555a9cc9c7f10.tar.gz |
[4.1.x] Refs #32339 -- Doc'd BaseFormSet.as_div()
Backport of 4038a8df0b8c20624ba826cf9af8f532e5a51aaa from main.
-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 6d2a2ba5f1..bda31ba7c5 100644 --- a/docs/topics/forms/formsets.txt +++ b/docs/topics/forms/formsets.txt @@ -872,14 +872,20 @@ Formsets have the following attributes and methods associated with rendering: .. versionadded:: 4.0 - 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. |