from django.shortcuts import render
from django.conf import settings
from django.http import HttpResponse
from rest_framework.generics import ListAPIView
from registries.models import Organization
from registries.serializers import DrillerListSerializer

class APIDrillerListView(ListAPIView):
    queryset = Organization.objects.all()
    serializer_class = DrillerListSerializer

# Create your views here.
def index(request):
    return HttpResponse("TEST: Driller Register app home index.")
@@ -328,16 +328,49 @@
 ts.all()
+.select_related('province_state')
 %0A    ser
@@ -519,8 +519,9 @@
 index.%22)
+%0A

Add prefetch to reduce queries on province_state