diff options
| author | Nilesh Kumar Pahari <nileshpahari@protonmail.com> | 2025-12-19 02:15:56 +0530 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-12-19 15:10:12 -0500 |
| commit | e49e14fd9032feb7a8cf254658ac4e74a4ffb712 (patch) | |
| tree | 8b2858657c52fe90c6a6adcc08fdb84d7f91aa4d /django | |
| parent | 5a851bdbfcd627865df7289197190c52221ca070 (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')
| -rw-r--r-- | django/forms/forms.py | 2 |
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 |
