Sorry my syntax was incorrect.
Change your list construction to be:
*ml.append([str(m[selected_mode]),year, month, day, m['total']])*
then in template
[
{% for mode, year, month, day, total in ml %}
'["{{ mode}}", "new Date({{ year }}, {{ month }}, {{ date }})", {{ total
}}],'
{% endfor %}
]
On
Hi Tarkeshwar,
Thank you for the response,But here i am directly passing list to the
template,
Can you please help me how to extract that list into that date format.
Thanks in advance
sushanth
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
2 matches
Mail list logo