Opened 3 years ago

Closed 3 years ago

#33622 closed New feature (fixed)

Allow overriding FormSet's error messages for too few and too many forms.

Reported by: Christoph Schindler Owned by: Marc Seguí Coll
Component: Forms Version: 4.0
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Moving the messages to default_error_messages enables overriding them via the error_messages argument when instantiating the FormSet.

I would prefer being able to override them via inlineformset_factory, but that is for another day.

Attachments (1)

patch.diff (2.5 KB ) - added by Christoph Schindler 3 years ago.

Download all attachments as: .zip

Change History (7)

by Christoph Schindler, 3 years ago

Attachment: patch.diff added

comment:1 by Mariusz Felisiak, 3 years ago

Has patch: unset
Summary: Allow overriding `too_few_forms` and `too_many_forms` validation errors in `FormSet`sAllow overriding FormSet's error messages for too few and too many forms.
Triage Stage: UnreviewedAccepted

Thanks for the ticket, sounds reasonable. Please submit PR via GitHub. Tests and release notes are required.

comment:2 by Marc Seguí Coll, 3 years ago

Owner: changed from nobody to Marc Seguí Coll
Status: newassigned

comment:4 by Mariusz Felisiak, 3 years ago

Patch needs improvement: set

comment:5 by Mariusz Felisiak, 3 years ago

Patch needs improvement: unset
Triage Stage: AcceptedReady for checkin

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 3 years ago

Resolution: fixed
Status: assignedclosed

In 262fde9:

Fixed #33622 -- Allowed customizing error messages for invalid number of forms.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@…>

Note: See TracTickets for help on using tickets.
Back to Top