def get_all_tasks(request): """Return an object with IDs of all task. Example: {"ids": [1, 2, 3]} """ id_list = task_service.get_all_tasks() return JsonResponse({'ids' : id_list})
def get_all_tasks(request): """Return an object with IDs of all task. Example: {"ids": [1, 2, 3]} """ id_list = task_service.get_all_tasks() return JsonResponse({'ids': id_list})
def get_all_tasks(request): """Return response with all task. """ id_list = task_service.get_all_tasks() return JsonResponse({'ids': id_list})
def get_all_tasks(request): """Return response with all task. """ id_list = task_service.get_all_tasks() return JsonResponse({'ids' : id_list})