'List a Project Release\'s Commits
Retrieve a list of commits for a given release.
:pparam string organization_slug: the slug of the organization the
release belongs to.
:pparam string project_slug: the slug of the project to list the
release files of.
:pparam string version: the version identifier of the release.
:auth: required'

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

    try:
        release = Release.objects.get(organization_id=project.organization_id, projects=project, version=version)
    except Release.DoesNotExist:
        raise ResourceDoesNotExist
    queryset = ReleaseCommit.objects.filter(release=release).select_related('commit', 'commit__author')
    return self.paginate(request=request, queryset=queryset, order_by='order', on_results=(lambda x: serialize([rc.commit for rc in x], request.user)))
