remove last comma forloop django

Solutions on MaxInterview for remove last comma forloop django by the best coders in the world

showing results for - "remove last comma forloop django"
Luigi
22 May 2016
1{% for product_in_series in series.get_products %}{%spaceless%}
2    {% with product_in_series.product as product %}
3    {%if not forloop.first%}
4        "<img src='{% version product.get_overview 'page_image' %}'>"
5        {%if not forloop.last%},{%endif%}
6    {%endif%}
7    {% endwith %}
8{%endspaceless%}{% endfor %}
9
similar questions
queries leading to this page
remove last comma forloop django