Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def send(self, confirmation_email):
if not self.cm_id:
raise ValueError("No draft created yet")
CreateSend.api_key = settings.API_KEY
campaign = CSCampaign(self.cm_id)
campaign.send(confirmation_email=confirmation_email)
self.status = self.STATUS_SENT
self.save()