class CombinedAPIView(APIView):

    def get(self, request):
        locations = Location.objects.all()
countries = Country.objects.all()
location_serializer = LocationSerializer(locations, many=True)
country_serializer = CountrySerializer(countries, many=True)
return Response({'countries': country_serializer.data, 'locations':
    location_serializer.data})
Как получить ответ нескольких объектов с помощью rest_framework и Django