title: Checking for if is_off in template tag but ischange is not detecting change
body: <p>I'm trying to hide a comment in a field if the employee is off. I have added my if tag to the field itself but in the <code>ifchange</code> loop it doesn't see the change and add a comment in the field if the employee is on. I've move this above the <code>ifchange</code> but then it will not show any fields if the employee is off. So basically my check skips the first one(off hours) but then the if_changed ignores the second one as the bar_record is the same. I can't figure out the way to work this. Any help is greatly appreciated!</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I got this fixed by moving the <code>if not foo.is_off</code> up the DOM but I was told this can be shorter. The <code>if</code> that is. </p>
  
  <p><strong>CODE</strong></p>
  
  <pre><code>    {% for foo in bar_information.bar_hours %}
        {% if not foo.is_off %}   &lt;!-- is there a shorter better way of writing this?  --&gt;
        {% ifchanged foo.bar_record %}
        &lt;tr class="{% cycle 'rowEven' 'rowOdd' %}"&gt;
          &lt;td&gt;
            {{ foo.bar_record.get_formatted_id }}
          &lt;/td&gt;
          &lt;td&gt;
            {{ foo.bar_record.entered_in|date:"DATETIME_FORMAT" }}
          &lt;/td&gt;
          &lt;td&gt;
            {{ foo.bar_record.get_display }}
          &lt;/td&gt;
          &lt;td&gt;
            {{ foo.bar_record.get_mistake_display }}
          &lt;/td&gt;
          &lt;td&gt;
            {% if foo.bar_record.number_shifts %}
              {{ foo.bar_record.number_shifts }}
            {% endif %}
          &lt;/td&gt;
          &lt;td&gt;
            &lt;div style="width: 400px; word-wrap: break-word;"&gt;
                {{ foo.bar_record.comments }}   &lt;!-- THIS COMMENT IS WHAT I NEED TO HIDE IF EMPLOYEE IS OFF  --&gt;
            &lt;/div&gt;
          &lt;/td&gt;
          &lt;td align="right"&gt;
            &lt;a class="button"
              href="{% url 'bar_record_view' foo.bar_record.pk %}"&gt;
                        View Record&lt;/a&gt;
            {% has_permission_cust CHECK_COMPLIANCE %}
              {% url 'check_compliance' foo.bar_record.pk as check_compliance_url %}
              &lt;a href="{{ check_compliance_url }}" class="button"&gt;Check Compliance&lt;/a&gt;
            {% end_has_permission_cust %}
          &lt;/td&gt;
        &lt;/tr&gt;
        {% endifchanged %}
        {% endif %}
      {% empty %}
      {% endfor %}
  </code></pre>