How can I dynamically add checked property to my input checkbox, assuming my object has an active property?
{% for object in objects %}
<li>
<input type="checkbox" id="id_{{object.id}}" name="checkbox" value={{object.id}}>
</li>
{% endfor %}
Adding checked="{{object.active}}" did not work.