def list(self, request): """ We use list instead of retrieve because retrieve requires a resource identifier, like a PK """ site = django.contrib.sites.shortcuts.get_current_site(request) data = retrieve_live_site_mau_data(site) serializer = self.serializer_class(data) return Response(serializer.data)
def list(self, request): """ We use list instead of retrieve because retrieve requires a resource identifier, like a PK """ site = figures.sites.get_requested_site(request) data = retrieve_live_site_mau_data(site) serializer = self.serializer_class(data) return Response(serializer.data)