Joined May 2011
·
Achievements
72 Karma
0 Total ProTip Views

Altruist
Increase developer well-being by sharing at least 20 open source projects

Raven
Have at least one original repo where some form of shell script is the dominant language

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Charity
Fork and commit to someone's open source project in need

Forked
Have a project valued enough to be forked by someone else

Python 3
Have at least three original repos where Python is the dominant language

Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
The second code has a bug. If the form contains only checkbox fields, when submitted and none of them are checked, the request.POST variable will be an empty dictionary, evaluated as False.
So, the form will be initialized with None (and consequently unbound). So the is_valid will be always False, even if the form is valid.