Commit 07289d34 authored by Renfred Harper's avatar Renfred Harper

Add restaurant location attribute data to api model

parent 2b120624
......@@ -10,7 +10,11 @@ def export_data():
flags=re.IGNORECASE))
for restaurant in alphalist:
restaurant_data = {'name': restaurant.name, 'id': restaurant.id}
restaurant_data = {
'name': restaurant.name,
'location': restaurant.location,
'id': restaurant.id
}
open_times = list()
for time in restaurant.main_schedule.open_times.all():
open_times.append({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment