Skip to content
Snippets Groups Projects
Commit c47a7c36 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

api for types include id

parent 164b9a26
No related branches found
No related tags found
1 merge request!8Resolve "Adding appointment"
......@@ -50,9 +50,11 @@ def appointment_types(request):
result = []
for appointment in appointments:
result.append({
"id": appointment.id,
"type": appointment.code,
"default_duration": appointment.default_duration,
"can_be_parallelized: ": appointment.can_be_parallelized})
"can_be_parallelized: ": appointment.can_be_parallelized,
})
return JsonResponse({
"appointments" : result
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment