[Answered ]-Invalid filter: 'revision'

2👍

The problem is your last applied filter in the chain (revision.height).

Replace:

{% with ""|add:revision.width|add:"x"|revision.height as dimensions %}

with:

{% with ""|add:revision.width|add:"x"|add:revision.height as dimensions %}

You can also assign variables to revision.width and revision.height:

{% with width=revision.width height=revision.height %}
    {% with ""|add:width|add:"x"|add:height as dimensions %}
        ...
    {% endwith %}
{% endwith %}
👤alecxe

Leave a comment