Add duck_comp_list API call
This commit is contained in:
8
api/templates/api/duck_comp_list.json
Normal file
8
api/templates/api/duck_comp_list.json
Normal 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 %}
|
||||
]
|
Reference in New Issue
Block a user