[Answer]-How can I test an unchecked checkbox in Django?

1👍

When checkbox is not checked, its not present in submitted form. Also, when submitted value is 'on'.

If you want to make BooleanField optional have required=False while defining the form field.

Documentation BooleanField.

👤Rohan

Leave a comment