diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-07-26 21:11:29 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-07-26 21:11:29 +0100 |
commit | f1ceb38f5fe285a8747dd6258de4ecaebb49d67a (patch) | |
tree | 4708006d9b5aca7841255bd37e81678d56e21aa4 /templates/core | |
parent | 0cf3b869af528b3b68a861b94ddb0aefc3819ecf (diff) | |
download | troggle-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.html | 2 |
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 |