Example #1
0
def mailchimp_template_choices():
  mailchimp = MailChimp(settings.MAILCHIMP_API_KEY)
  templates = mailchimp.campaignTemplates()

  choices = []
  for template in templates:
    choices.append((template['id'], template['name']))

  return choices