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

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

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