Add migration file to define http_method explicitly

This commit is contained in:
beeankha
2019-07-23 14:52:26 -04:00
parent 37e73acb62
commit 7580491f1a
2 changed files with 27 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ class WebhookBackend(AWXBaseEmailBackend):
chosen_method = getattr(requests, self.http_method.lower(), None)
for m in messages:
auth = None
if self.username:
if self.username or self.password:
auth = (self.username, self.password)
r = chosen_method("{}".format(m.recipients()[0]),
auth=auth,