I have Article model and user wants to select which articles should be exported to file.
I want to use Django Form / ModelForm class to generate something like:
<input type="checkbox" name="articles[0]">Article #0</input>
<input type="checkbox" name="articles[1]">Article #1</input>
<input type="checkbox" name="articles[2]">Article #2</input>
<!-- ... -->
How can I do that and then get selected articles?