Return a dictionary for the lot's location

master
DjBushido 2013-10-28 12:09:15 -04:00
parent b5ae16ba93
commit ee2481ddc9
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ class ParkingLotEntrance(APIView):
# The get_object_or_404 makes sure that it's a valid lot that will have
# an entry in the LOT_ENTRANCES dictionary.
parking_lot = get_object_or_404(ParkingLot, location=lot)
return Response(ParkingLot.LOT_ENTRANCES[lot])
lot_t = ParkingLot.LOT_ENTRANCES[lot]
return Response({'latitude': lot_t[0], 'longitude': lot_t[1], 'label': lot_t[2]})
class RegisterUser(APIView):
"""