Skip to content

Commit

Permalink
send place_name when doing a service lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
maltem-za committed Mar 3, 2016
1 parent 477e07c commit db29a12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions molo/servicedirectory/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ def get_context_data(self, **kwargs):
if place_latlng is not None:
service_directory_query_parms['near'] = place_latlng

if place_formatted_address is not None:
service_directory_query_parms['place_name'] =\
place_formatted_address

url = '{0}service_lookup/?{1}'.format(
settings.SERVICE_DIRECTORY_API_BASE_URL,
service_directory_query_parms.urlencode()
Expand Down

0 comments on commit db29a12

Please sign in to comment.