2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

fix for no comma after lat item in django template

This commit is contained in:
Philip Sargent 2020-07-26 21:11:29 +01:00
parent 0cf3b869af
commit f1ceb38f5f

View File

@ -1,4 +1,4 @@
{% extends "baseapi.html" %}
{% block content %}{
{% for expedition in object_list %}"{{expedition.year}}": ["{{expedition.name}}","{{expedition.get_absolute_url}}"]
{% for expedition in object_list %}{% if not forloop.last %}"{{expedition.year}}": ["{{expedition.name}}","{{expedition.get_absolute_url}}"],{% endif %}{% if forloop.last %}"{{expedition.year}}": ["{{expedition.name}}","{{expedition.get_absolute_url}}"]{% endif %}
{% endfor %} }{% endblock %}