summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorNilesh Kumar Pahari <nileshpahari@protonmail.com>2025-12-19 02:15:56 +0530
committerJacob Walls <jacobtylerwalls@gmail.com>2025-12-19 15:10:12 -0500
commite49e14fd9032feb7a8cf254658ac4e74a4ffb712 (patch)
tree8b2858657c52fe90c6a6adcc08fdb84d7f91aa4d /django/forms
parent5a851bdbfcd627865df7289197190c52221ca070 (diff)
Fixed #36618 -- Corrected error message in BaseForm.add_error().
The error message now correctly states that the error argument is a dictionary.
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py
index 760ba7b767..ce64f6286e 100644
--- a/django/forms/forms.py
+++ b/django/forms/forms.py
@@ -288,7 +288,7 @@ class BaseForm(RenderableFormMixin):
if field is not None:
raise TypeError(
"The argument `field` must be `None` when the `error` "
- "argument contains errors for multiple fields."
+ "argument is a dictionary."
)
else:
error = error.error_dict