Open GoogleCodeExporter opened 8 years ago
How is this different from using:
{% if not(m.rsc[id]|is_a:"article") %}
basically you can put not() around any expression..
Original comment by scherpenisse
on 16 Mar 2011 at 8:53
I might have missed something. The form returning a boolean when passed a
single item is only provided for completeness. I use is_not filter with a list :
{% with m.rsc[id].media|without_embedded_media:id|is_not_a:"thumbnail" as media
%}
{% if media %}
{% for m in media %}
...
<li {% if forloop.first %} class="show" {% endif %} >
...
</li>
{% endfor %}
...
{% endif %}
{% endwith %}
Can I do the same thing with not() ?
Original comment by pgu...@gmail.com
on 16 Mar 2011 at 9:39
Original issue reported on code.google.com by
pgu...@gmail.com
on 12 Mar 2011 at 11:06Attachments: