forked from expo/troggle
More QM fields in JSON export
This commit is contained in:
parent
3011e7b114
commit
17fa306b09
@ -1,5 +1,5 @@
|
||||
{% extends "baseapi.html" %}
|
||||
{% block content %}{
|
||||
{% for qm in object_list %}{% if not forloop.last %}"{{qm.number}}":
|
||||
["{{qm.expoyear}}","{{qm.cave}}","{{qm.blockname}}","QM{{qm.number}}","{{qm.grade}}","{{qm.get_absolute_url}}"],{% endif %}{% if forloop.last %}"{{qm.number}}": ["{{qm.expoyear}}","{{qm.cave}}","{{qm.blockname}}","QM{{qm.number}}","{{qm.grade}}","{{qm.get_absolute_url}}"]{% endif %}
|
||||
{% for qm in object_list %}{% if not forloop.last %}"{{qm.id}}":
|
||||
["{{qm.expoyear}}","{{qm.cave}}","{{qm.blockname}}","QM{{qm.number}}","{{qm.grade}}","{{qm.nearest_station_name}}","{{qm.resolution_station_name}}","{{qm.get_absolute_url}}"],{% endif %}{% if forloop.last %}"{{qm.number}}": ["{{qm.expoyear}}","{{qm.cave}}","{{qm.blockname}}","QM{{qm.number}}","{{qm.grade}}","{{qm.nearest_station_name}}","{{qm.resolution_station_name}}","{{qm.get_absolute_url}}"]{% endif %}
|
||||
{% endfor %} }{% endblock %}
|
Loading…
Reference in New Issue
Block a user