Do I really have to suffer this for every radio or check box if I want to keep the state after submititng the form?
<input type="radio" name="all_gene" class="open_gene" checked=
% if request.GET.get("all_gene") == "0":
checked="checked"
% endif
value="0"> <label>One gene</label>
<input type="radio" name="all_gene" class="open_gene" checked=
% if request.GET.get("all_gene") == "1":
checked="checked"
% endif
value="1"> <label>Another gene</label>
You can always give the name of the objects and index and use “for” loops for their creation and the “get” function.