I have a custom checkbox render in Django template. If there are any non_field_errors on form submission, when the form is rendered back with submitted values, how do I access the checked state of checkbox in Django template?
To illustrate:
Checkbox from {{ form.field }}
is rendering checked state correctly, where as
Checkbox using <input type=“checkbox”…> tag is not showing the checked state.
Thanks
~