summaryrefslogtreecommitdiffstats
path: root/templates/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-07-26 21:11:29 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-07-26 21:11:29 +0100
commitf1ceb38f5fe285a8747dd6258de4ecaebb49d67a (patch)
tree4708006d9b5aca7841255bd37e81678d56e21aa4 /templates/core
parent0cf3b869af528b3b68a861b94ddb0aefc3819ecf (diff)
downloadtroggle-f1ceb38f5fe285a8747dd6258de4ecaebb49d67a.tar.gz
troggle-f1ceb38f5fe285a8747dd6258de4ecaebb49d67a.tar.bz2
troggle-f1ceb38f5fe285a8747dd6258de4ecaebb49d67a.zip
fix for no comma after lat item in django template
Diffstat (limited to 'templates/core')
-rw-r--r--templates/core/expeditions_json_list.html2
1 files changed, 1 insertions, 1 deletions
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