title: Django grid form for 2D array of entries
body: <p>I have two lists (these are just small examples):</p>
  
  <pre><code>Attackers = ['John', 'Mary']
  Defenders = ['Steve', 'Bill', 'Dave']
  </code></pre>
  
  <p>My objective is to create a 2D grid form with the appropriate amount of inputs (checkboxes) representing all possible relationships between the two lists.</p>
  
  <p>I'm having a hard time wrapping my head around how to do this at both the model and view level. I've looked into inline formsets and model formsets, but I'm not really sure how to proceed.</p>
  
  <p>EDIT:</p>
  
  <pre><code>{% for at in atts %}
      {% for def in defs %}
          &lt;input type="text" name="{{ at }}_{{ def }}" value="{{ at }}_{{ def }}" &gt;
      {% endfor %}
      &lt;br&gt;
  {% endfor %}
  </code></pre>