Browse Source

[FIX] mailgun: look for xml_id in this module

pull/32/head
Ildar Nasyrov 9 years ago
parent
commit
a04d2d9c38
  1. 2
      mailgun/models.py

2
mailgun/models.py

@ -29,7 +29,7 @@ class IrConfigParameter(models.Model):
def mailgun_verify(self): def mailgun_verify(self):
api_key = self.get_param('mailgun.apikey') api_key = self.get_param('mailgun.apikey')
mail_domain = self.get_param('mail.catchall.domain') mail_domain = self.get_param('mail.catchall.domain')
cron_record = self.env.ref('base.mailgun_domain_verification')
cron_record = self.env.ref('mailgun_domain_verification')
if api_key and mail_domain: if api_key and mail_domain:
url = "https://api.mailgun.net/v3/domains/%s/verify" % mail_domain url = "https://api.mailgun.net/v3/domains/%s/verify" % mail_domain
res = requests.put(url, auth=("api", api_key)) res = requests.put(url, auth=("api", api_key))

Loading…
Cancel
Save