[Answer]-If tag in template does not cooperate with boolean passed in context

1👍

They are boolean variables already! No need to compare to them True or False. Try this:

{% if banned %}
    <p>Content</p>
{% else %}
    <p>Content #2</p>
{% end if %}

Leave a comment