title: Django boolean field views+templates
body: <p>Here is my current setup:</p>
  
  <p><a href="http://dpaste.com/699684/" rel="nofollow">http://dpaste.com/699684/</a></p>
  
  <p>What I am looking to do is two things:</p>
  
  <ol>
  <li><p>I want to include a new template if the boolean field value is true, for example</p>
  
  <pre><code>{% if clearance=true %} {% include example.html %} {% endif %}
  </code></pre>
  
  <p>I think that is easy(ish) but I cant work out how to get the value into a view then out into my template</p></li>
  <li><p>I want to be able to define a new view called clearance that lists under "/clearance" that lists all products with the clearance boolean filed. I have one base polymorphic model and sevral other models that extend from there, Accessory is just one I have given as an example</p>
  
  <p>This I think maybe slightly harder due to polymorphic, but I could be wrong.</p></li>
  </ol>