class CombinedAPIView(APIView):

    def get(self, request):
        locations = Location.objects.all()
countries = Country.objects.all()
How to get a response of multiple objects using rest_framework and Django