title: Check if element from list is inside another list in django template
body: <p>I'm making a <code>for loop</code> through a list. For each element in this list, I would like to know if this element could be egal to one of 4 words from another list.</p>
  
  <p>This is my example in order to describe the situation:</p>
  
  <p>From my view:</p>
  
  <pre><code>content = ['**Added**:\n', '* something (toto-544)\n', '\n', '**Changed**:\n', ...]
  
  operations = ['Added', 'Changed', 'Fixed', 'INTERNAL']
  </code></pre>
  
  <p>From my HTML file:</p>
  
  <pre><code>{% for line in content %}
    {% if line in operations %}
      &lt;tr class="table-subtitle"&gt;
        &lt;td colspan="12"&gt;{{ line }}&lt;/td&gt;
      &lt;/tr&gt;
    {% else %}
      &lt;tr class="table-value-content"&gt;
        &lt;td colspan="12"&gt;{{ line }}&lt;/td&gt;
      &lt;/tr&gt;
    {% endif %}
  {% endfor %}
  </code></pre>
  
  <p>It should display the first <code>line</code> element different than the second one (I changed color between both classes). Because <code>line[0]</code> is in <code>operations</code> and not <code>line[1]</code>.</p>
  
  <p>Do you have any idea why it doesn't work through my <code>for loop</code>/<code>if statement</code> ?</p>