'List a Release\'s Deploys
Return a list of deploys for a given release.
:pparam string organization_slug: the organization short name
:pparam string version: the version identifier of the release.'

def get(self, request, organization, version):

    try:
        release = Release.objects.get(version=version, organization=organization)
    except Release.DoesNotExist:
        raise ResourceDoesNotExist
    if (not self.has_release_permission(request, organization, release)):
        raise PermissionDenied
    queryset = Deploy.objects.filter(organization_id=organization.id, release=release)
    return self.paginate(request=request, queryset=queryset, order_by='-date_finished', paginator_cls=OffsetPaginator, on_results=(lambda x: serialize(x, request.user)))
