Skip to content

Commit

Permalink
Refactor preparation of old talks data to avoid encoding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaith committed May 27, 2015
1 parent eeee294 commit cabbda8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion talks/old_talks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def event_to_old_talk(event, series_id):
name = location['name']
if event.location_details:
name += " (" + event.location_details + ")"
data.append(("talk[venue_name]", "{name}, {address}".format(name=name, address=location.get('address', ''))))
location_string = name + ", " + location.get('address')
location = ("talk[venue_name]", location_string)
data.append(location)
elif event.location_details:
name = event.location_details
data.append(("talk[venue_name]", "{name}".format(name=name)))
Expand Down

0 comments on commit cabbda8

Please sign in to comment.