[Answered ]-Check if member value is different than in previous iteration

2👍

Use the {% ifchanged %} template tag:

{% for membership in group_memberships %}

    {% ifchanged %}
        <h1>{{ membership.product.name }}</h1>
    {% endifchanged %}

    <p>{{ membership.group.name }}</p>

{% endif %}

Leave a comment