Download code if records: action = records.action_attachments_download()