Skip to content

Commit

Permalink
Fix crash if no address
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaith committed Mar 13, 2015
1 parent 274c5ae commit 7ac5684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion talks/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def get_location_summary(self, obj):
summary = api_loc['name']
if(obj.location_details):
summary = summary + ", " + obj.location_details
summary = summary + ", " + api_loc['address']
if 'address' in api_loc:
summary = summary + ", " + api_loc['address']
return summary
return None

Expand Down

0 comments on commit 7ac5684

Please sign in to comment.