The proper way to do this is to use a filter block.
doesn't allow for None to be passed from here into cache. The
fix is in master, but not release.
https://code.djangoproject.com/ticket/27882
+ We filter out details and summary tags so that we always see
+ the full content on the details page.
{% endcomment %}
+ {% filter removetags:"details summary" %}
{% cache 31536000 partner_description LANGUAGE_CODE object.pk %}
- {{ object.description | twlight_wikicode2html | removetags:"details summary" | safe }}
+ {{ object.description | twlight_wikicode2html | safe }}
{% endcache %}
+ {% endfilter %}
</p>
{% else %}
{% trans "Description not available." %}
doesn't allow for None to be passed from here into cache. The
fix is in master, but not release.
https://code.djangoproject.com/ticket/27882
+ We filter out details and summary tags so that we always see
+ the full content on the details page.
{% endcomment %}
<li><b>{{ stream }}</b>
{% if stream.description %}&mdash;
+ {% filter removetags:"details summary" %}
{% cache 31536000 stream_description LANGUAGE_CODE stream.pk %}
- {{ stream.description | twlight_wikicode2html | removetags:"details summary" | safe }}
+ {{ stream.description | twlight_wikicode2html | safe }}
{% endcache %}
+ {% endfilter %}
{% endif %}
</li>
{% endfor %}
