'Returns the appropriate adapter based on the OAuth client linked to the request.'

def get_adapter(self, request):

    if dot_models.Application.objects.filter(client_id=self._get_client_id(request)).exists():
        return self.dot_adapter
    else:
        return self.dop_adapter
