We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
master
$(form).serialize() serialize checkbox with no value to "on" or "off"
$(form).serialize()
value
on
off
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).
TRUE_VALUES
FALSE_VALUES
Value is ignored
The text was updated successfully, but these errors were encountered:
Support 'on'/'off' literals with BooleanField. Closes #4624
28bcbf2
I'm a little lukewarm on this, but sure, let's go ahead. Seems a common enough style.
Sorry, something went wrong.
Support 'on'/'off' literals with BooleanField. Closes #4624 (#4640)
276ed80
No branches or pull requests
Checklist
master
branch of Django REST framework.Steps to reproduce
$(form).serialize()
serialize checkbox with novalue
to "on
" or "off
"Expected behavior
Add "
on
" toTRUE_VALUES
and "off
" toFALSE_VALUES
(I don't always have the control over html/js to add
value
to checkboxes).Actual behavior
Value is ignored
The text was updated successfully, but these errors were encountered: