title: Django template remove trailing comma from for loop if contition is met
body: <p>I'm creating a list of items with their attributes in Django. I'm getting items and their attributes from legacy database using sql stored procedures so option to get somthing like elegeant as {% for attribute in item.atributes_set.all %} is not posible.</p>
  
  <p>What I have is this:</p>
  
  <pre><code>{% for article in articles%}
    {{article.title}}:
    {% for attribute in attributes %}
      {% if article.supplierID == attribute.SupplierID and article.ItemID = attribute.ItemID %}
        {{attribute.value}},
      {% endif %}
    {% endfor %}
  {% endfor %}
  </code></pre>
  
  <p>Is there a was to remove trailing comma on the last item that meet if statement condition?</p>