Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5081 closed (wontfix)

Defaults newforms' BooleanField to required=False

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

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@…> 17 years ago.
django/newforms/fields.py
patch.2.diff (440 bytes ) - added by k0001 <gnuk0001@…> 17 years ago.
django/newforms/fields.py

Download all attachments as: .zip

Change History (5)

by k0001 <gnuk0001@…>, 17 years ago

Attachment: patch.diff added

django/newforms/fields.py

by k0001 <gnuk0001@…>, 17 years ago

Attachment: patch.2.diff added

django/newforms/fields.py

comment:1 by anonymous, 17 years ago

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

comment:2 by Adrian Holovaty, 17 years ago

Resolution: wontfix
Status: newclosed

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

comment:3 by Philippe Raoult, 17 years ago

kind of duplicate with #5104

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