Commit 741b4b58 authored by Stauros Kroustouris's avatar Stauros Kroustouris

locations in api

parent 6c5b30a7
......@@ -218,7 +218,11 @@ def location(request, location=None):
else:
result = []
for l in Location.objects.all():
result.append({'id': l.location_id, 'name': l.name})
result.append({
'id': l.location_id,
'name': l.name,
'address': l.address,
})
return HttpResponse(
json.dumps(result),
mimetype='application/json',
......
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