Access BoundField value in Django template for custom widget rendering

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
~

Implement the render method with custom template and its working.

    def render(self, name, value, attrs=None, renderer=None):
        context = self.get_context(name, value, attrs)
        template = loader.get_template(self.template_name).render(context)
        return mark_safe(template)