Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5081 closed (wontfix)

Defaults newforms' BooleanField to required=False

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

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by k0001 <gnuk0001@…>

django/newforms/fields.py

Changed 8 years ago by k0001 <gnuk0001@…>

django/newforms/fields.py

comment:1 Changed 8 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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 8 years ago by adrian

  • Resolution set to wontfix
  • Status changed from new to closed

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

comment:3 Changed 8 years ago by PhiR

kind of duplicate with #5104

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