'Given an OS slug return the appropriate download file'

def download_file_for_os(self, os_slug):

    try:
        file = self.files.get(os__slug=os_slug, download_button=True)
    except ReleaseFile.DoesNotExist:
        file = None
    return file
