擅长:python、mysql、java
<p>就用这个:</p>
<pre><code>{% if x.reminder %}
</code></pre>
<p>这个(不带引号)自django 1.5起就起作用了,但它是多余的。</p>
<pre><code>{% if x.reminder == True %}
</code></pre>
<p></p>
<p><a href="https://docs.djangoproject.com/en/dev/releases/1.5/#minor-features" rel="nofollow noreferrer">https://docs.djangoproject.com/en/dev/releases/1.5/#minor-features</a></p>
<blockquote>
<p>The template engine now interprets True, False and None as the corresponding Python objects.</p>
</blockquote>