from django.shortcuts import render from django.http import JsonResponse from .models import RapportoRicezione # Create your views here. def rapporti_get(request): return JsonResponse([ r.serialize() for r in RapportoRicezione.objects.all() ], safe=False)