BooleanField should also parse 'on' · Issue #4624 · encode/django-rest-framework (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@rsalmaso

Description

@rsalmaso

Checklist

Steps to reproduce

$(form).serialize() serialize checkbox with no value to "on" or "off"

Expected behavior

Add "on" to TRUE_VALUES and "off" to FALSE_VALUES
(I don't always have the control over html/js to add value to checkboxes).

Actual behavior

Value is ignored