MYNEWCODE def subs(request, pk): sw = Swimmers.objects.filter(id=pk).values('sessions') sw_list = map(int, sw [0]) sw_list = map(lambda x: x + 1, sw_list ) return JsonResponse(list(sw_list), safe=False)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)