From e49e14fd9032feb7a8cf254658ac4e74a4ffb712 Mon Sep 17 00:00:00 2001 From: Nilesh Kumar Pahari Date: Fri, 19 Dec 2025 02:15:56 +0530 Subject: Fixed #36618 -- Corrected error message in BaseForm.add_error(). The error message now correctly states that the error argument is a dictionary. --- django/forms/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/forms/forms.py') 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 -- cgit v1.3