Skip to content

Commit

Permalink
🚀 feat(fixer.py): add support for both data.fixer.io and `api.apila…
Browse files Browse the repository at this point in the history
…yer.com` auth params (#707)
  • Loading branch information
fedosov committed Apr 27, 2023
1 parent 7989797 commit a09580c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion djmoney/contrib/exchange/backends/fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ def __init__(self, url=settings.FIXER_URL, access_key=settings.FIXER_ACCESS_KEY)
self.access_key = access_key

def get_params(self):
return {"apikey": self.access_key}
# support both `data.fixer.io` and `api.apilayer.com` auth params
return {
"apikey": self.access_key,
"access_key": self.access_key,
}

0 comments on commit a09580c

Please sign in to comment.