diff --git a/templates/core/expeditions_json_list.html b/templates/core/expeditions_json_list.html index ebd5834..ad92206 100644 --- a/templates/core/expeditions_json_list.html +++ b/templates/core/expeditions_json_list.html @@ -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 %} \ No newline at end of file