From 232b60a21b951bd16b8c95b34fcbcbf3ecd89fca Mon Sep 17 00:00:00 2001 From: David Smith Date: Sun, 12 Feb 2023 13:20:05 +0000 Subject: Refs #32339 -- Updated docs to reflect default
style form rendering in Django 5.0. Follow up to 98756c685ee173bbd43f21ed0553f808be835ce5. --- docs/topics/forms/modelforms.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs/topics/forms/modelforms.txt') diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 4242cd96e0..be871fd4b0 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -815,13 +815,13 @@ with the ``Author`` model. It works just like a regular formset: >>> formset = AuthorFormSet() >>> print(formset) - -
+
+
.. note:: @@ -1021,11 +1021,11 @@ so long as the total number of forms does not exceed ``max_num``: >>> AuthorFormSet = modelformset_factory(Author, fields=['name'], max_num=4, extra=2) >>> formset = AuthorFormSet(queryset=Author.objects.order_by('name')) >>> for form in formset: - ... print(form.as_table()) - - - - + ... print(form) +
+
+
+
A ``max_num`` value of ``None`` (the default) puts a high limit on the number of forms displayed (1000). In practice this is equivalent to no limit. -- cgit v1.3