summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authormeghanabhange <meghanabhange13@gmail.com>2020-09-24 01:38:15 +0530
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-09-28 07:05:34 +0200
commit848770dd2c5dec6c805d67f470eb936f38b9421d (patch)
tree0104f0ab0972628d0d095939619d9fd53a75e845 /docs
parent91669cc566918fde4fe98f867cf4c406f64504e6 (diff)
Fixed #32042 -- Improved error messages for the number of submitted forms in formsets.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/forms/formsets.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/topics/forms/formsets.txt b/docs/topics/forms/formsets.txt
index 3d71183ea7..37f6e300c4 100644
--- a/docs/topics/forms/formsets.txt
+++ b/docs/topics/forms/formsets.txt
@@ -151,7 +151,7 @@ protects against memory exhaustion attacks using forged ``POST`` requests::
>>> formset.is_valid()
False
>>> formset.non_form_errors()
- ['Please submit 1000 or fewer forms.']
+ ['Please submit at most 1000 forms.']
When ``absolute_max`` is None, it defaults to ``max_num + 1000``. (If
``max_num`` is ``None``, it defaults to ``2000``).
@@ -371,7 +371,7 @@ deletion, is less than or equal to ``max_num``.
>>> formset.errors
[{}, {}]
>>> formset.non_form_errors()
- ['Please submit 1 or fewer forms.']
+ ['Please submit at most 1 form.']
``validate_max=True`` validates against ``max_num`` strictly even if
``max_num`` was exceeded because the amount of initial data supplied was
@@ -413,7 +413,7 @@ deletion, is greater than or equal to ``min_num``.
>>> formset.errors
[{}, {}]
>>> formset.non_form_errors()
- ['Please submit 3 or more forms.']
+ ['Please submit at least 3 forms.']
.. note::