Fix json template for listing SWF domains
This commit is contained in:
parent
2c3b286b6b
commit
3e2c7dec83
@ -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 %}
|
||||||
]
|
]
|
||||||
}"""
|
}"""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user