Fix json template for listing SWF domains

This commit is contained in:
Jean-Baptiste Barth 2015-09-30 12:50:17 +02:00
parent 2c3b286b6b
commit 3e2c7dec83

View File

@ -83,13 +83,13 @@ class SWFResponse(BaseResponse):
LIST_DOMAINS_TEMPLATE = """{ LIST_DOMAINS_TEMPLATE = """{
"domainInfos": [ "domainInfos": [
{% for domain in domains %} {%- for domain in domains %}
{ {
"description": "{{ domain.description }}", "description": "{{ domain.description }}",
"name": "{{ domain.name }}", "name": "{{ domain.name }}",
"status": "{{ domain.status }}" "status": "{{ domain.status }}"
} }{% if not loop.last %},{% endif %}
{% endfor %} {%- endfor %}
] ]
}""" }"""