Skip to content

Commit

Permalink
Merge pull request #3409 from akvo/release/candidate
Browse files Browse the repository at this point in the history
RSR Release v3.40.2 (Hot-fix)
  • Loading branch information
punchagan committed Nov 8, 2018
2 parents 7dcc898 + 2aa0770 commit b291a35
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions akvo/rsr/templatetags/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def project_map(id, width, height, dynamic='dynamic'):
'update_locations': json.dumps(update_locations),
'dynamic': dynamic,
'infowindows': False,
'partnersite_widget': False
'partnersite_widget': False,
'gmaps_api_key': getattr(settings, 'GOOGLE_MAPS_API_KEY', 'NO_API_KEY')
}

return template_context
Expand Down Expand Up @@ -215,7 +216,9 @@ def projects_map(projects, width, height, dynamic='dynamic'):
'locations': locations,
'update_locations': update_locations,
'dynamic': dynamic,
'infowindows': True
'infowindows': True,
'gmaps_api_key': getattr(settings, 'GOOGLE_MAPS_API_KEY', 'NO_API_KEY')

}

return template_context

0 comments on commit b291a35

Please sign in to comment.