title: django boolean field in template
body: <p>I am trying to display a message on a template that varies based on the boolean field in my model.</p>
  
  <p>For my model I have:</p>
  
  <pre><code>Class Example(models.Model):
      completed = models.BooleanField(default=False)
  </code></pre>
  
  <p>Views.py</p>
  
  <pre><code>def home(request):
      example = Example.objects
      return render(request, 'home.html', {'example': example})
  </code></pre>
  
  <p>home.html</p>
  
  <pre><code>{% for x in example.all %}
  {% if x.completed %}
      &lt;p&gt;Congratulations!&lt;/p&gt;
  {% else %}
      &lt;p&gt;Try again!&lt;/p&gt;
  {% endif %}
  {% endfor %}
  </code></pre>
  
  <p>The template always displays "Try again!" even though through the Admin I have ensured that some are True and some are False.</p>