Skip to content
New issue

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

Use 0 and 1 instead of true and false #6

Open
DeanStr opened this issue Oct 24, 2014 · 1 comment
Open

Use 0 and 1 instead of true and false #6

DeanStr opened this issue Oct 24, 2014 · 1 comment

Comments

@DeanStr
Copy link

DeanStr commented Oct 24, 2014

It would be better to use 0 and 1 as the values rather than true or false, because sending the data via AJAX will always result in a string, and in php "false" will = true, while "0" will = false.

@janosgyerik
Copy link
Owner

That seems to make sense. I'll see how that change would impact my existing sites using django, and probably do this, or maybe add an option to enable this behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants