Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5081 closed (wontfix)

Defaults newforms' BooleanField to required=False

Reported by: k0001 <gnuk0001@…> Owned by: Adrian Holovaty
Component: Forms Version: master
Severity: Keywords: booleanfield required
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Defaults newforms' BooleanField to required=False so you don't get validation errors when the checkbox is unchecked.

Attachments (2)

patch.diff (418 bytes) - added by k0001 <gnuk0001@…> 9 years ago.
django/newforms/fields.py
patch.2.diff (440 bytes) - added by k0001 <gnuk0001@…> 9 years ago.
django/newforms/fields.py

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by k0001 <gnuk0001@…>

Attachment: patch.diff added

django/newforms/fields.py

Changed 9 years ago by k0001 <gnuk0001@…>

Attachment: patch.2.diff added

django/newforms/fields.py

comment:1 Changed 9 years ago by anonymous

Why would this be good? All other fields default to required=True. This would be a backwards incompatible change for no gains.

comment:2 Changed 9 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed

Closing this as a wontfix because there's no good reason to make this change.

comment:3 Changed 9 years ago by Philippe Raoult

kind of duplicate with #5104

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