mappa-ricezione-radio/rxmap/rxmapp/views.py
2020-03-02 01:49:44 +01:00

12 lines
283 B
Python

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)