Add duck_comp_list API call

This commit is contained in:
2014-12-23 09:56:04 +01:00
committed by Gergely Polonkai
parent 13c09bb856
commit 2a53041702
5 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
[
{% for comp in duck.duckcompetence_set.all %}
{
"name": "{{ comp.comp.name }}",
"level": {{ comp.level }}
}{% if not forloop.last %},{% endif %}
{% endfor %}
]