Re: [Django] #36618: BaseForm.add_error() misleading exception message when both field and dict provided

4 views
Skip to first unread message

Django

unread,
Sep 24, 2025, 5:29:04 AMSep 24
to django-...@googlegroups.com
#36618: BaseForm.add_error() misleading exception message when both field and dict
provided
-------------------------------------+-------------------------------------
Reporter: Chris Brand | Owner:
Type: | The5cheduler
Cleanup/optimization | Status: assigned
Component: Forms | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* stage: Unreviewed => Accepted

--
Ticket URL: <https://code.djangoproject.com/ticket/36618#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 26, 2025, 12:44:11 PMSep 26
to django-...@googlegroups.com
#36618: BaseForm.add_error() misleading exception message when both field and dict
provided
-------------------------------------+-------------------------------------
Reporter: Chris Brand | Owner:
Type: | The5cheduler
Cleanup/optimization | Status: assigned
Component: Forms | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by The5cheduler):

Thank you @jacobtylerwalls
I have adjusted the files to update the messaging of the error without
updating underlying behavior of the method.
--
Ticket URL: <https://code.djangoproject.com/ticket/36618#comment:7>

Django

unread,
Dec 9, 2025, 11:33:25 PM (9 days ago) Dec 9
to django-...@googlegroups.com
#36618: BaseForm.add_error() misleading exception message when both field and dict
provided
-------------------------------------+-------------------------------------
Reporter: Chris Brand | Owner:
Type: | The5cheduler
Cleanup/optimization | Status: assigned
Component: Forms | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Nilesh Pahari):

Hi! Since this has been open for a while, can I pick it up?
--
Ticket URL: <https://code.djangoproject.com/ticket/36618#comment:8>

Django

unread,
Dec 13, 2025, 1:49:41 AM (6 days ago) Dec 13
to django-...@googlegroups.com
#36618: BaseForm.add_error() misleading exception message when both field and dict
provided
-------------------------------------+-------------------------------------
Reporter: Chris Brand | Owner: Nilesh
Type: | Pahari
Cleanup/optimization | Status: assigned
Component: Forms | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Nilesh Pahari):

* owner: The5cheduler => Nilesh Pahari

--
Ticket URL: <https://code.djangoproject.com/ticket/36618#comment:9>

Django

unread,
Dec 18, 2025, 4:06:38 PM (13 hours ago) Dec 18
to django-...@googlegroups.com
#36618: BaseForm.add_error() misleading exception message when both field and dict
provided
-------------------------------------+-------------------------------------
Reporter: Chris Brand | Owner: Nilesh
Type: | Pahari
Cleanup/optimization | Status: assigned
Component: Forms | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Nilesh Pahari):

* needs_better_patch: 1 => 0

--
Ticket URL: <https://code.djangoproject.com/ticket/36618#comment:10>

Django

unread,
Dec 18, 2025, 4:13:26 PM (13 hours ago) Dec 18
to django-...@googlegroups.com
#36618: BaseForm.add_error() misleading exception message when both field and dict
provided
-------------------------------------+-------------------------------------
Reporter: Chris Brand | Owner: Nilesh
Type: | Pahari
Cleanup/optimization | Status: assigned
Component: Forms | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Nilesh Pahari):

PR: https://github.com/django/django/pull/20426
--
Ticket URL: <https://code.djangoproject.com/ticket/36618#comment:11>

Django

unread,
Dec 18, 2025, 8:04:54 PM (9 hours ago) Dec 18
to django-...@googlegroups.com
#36618: BaseForm.add_error() misleading exception message when both field and dict
provided
-------------------------------------+-------------------------------------
Reporter: Chris Brand | Owner: Nilesh
Type: | Pahari
Cleanup/optimization | Status: assigned
Component: Forms | Version: 5.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Nilesh Pahari):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36618#comment:12>
Reply all
Reply to author
Forward
0 new messages