Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
erdem committed Apr 11, 2021
2 parents 9091290 + c02073e commit 9ba870e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions mapwidgets/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
("region", "")
),
"LANGUAGE": "en",
"LIBRARIES": "places",
"MINIFED": not django_settings.DEBUG,
"GOOGLE_MAP_API_SIGNATURE": "",
"GOOGLE_MAP_API_KEY": "",
Expand Down
8 changes: 4 additions & 4 deletions mapwidgets/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def media(self):
}

js = [
'https://maps.googleapis.com/maps/api/js?libraries=places&language={}&key={}'.format(
mw_settings.LANGUAGE, mw_settings.GOOGLE_MAP_API_KEY
"https://maps.googleapis.com/maps/api/js?libraries={}&language={}&key={}".format(
mw_settings.LIBRARIES, mw_settings.LANGUAGE, mw_settings.GOOGLE_MAP_API_KEY
)
]

Expand Down Expand Up @@ -167,8 +167,8 @@ def media(self):
}

js = [
'https://maps.googleapis.com/maps/api/js?libraries=places&language={}&key={}'.format(
mw_settings.LANGUAGE, mw_settings.GOOGLE_MAP_API_KEY
"https://maps.googleapis.com/maps/api/js?libraries={}&language={}&key={}".format(
mw_settings.LIBRARIES, mw_settings.LANGUAGE, mw_settings.GOOGLE_MAP_API_KEY
)
]

Expand Down

0 comments on commit 9ba870e

Please sign in to comment.