fix to_location_json

This commit is contained in:
Laura Klünder 2016-12-28 01:23:52 +01:00
parent f9b977f95e
commit ef7b831849

View file

@ -202,7 +202,7 @@ class LocationViewSet(ViewSet):
location = get_location(request, name) location = get_location(request, name)
if location is None: if location is None:
raise Http404 raise Http404
return Response(location.to_json()) return Response(location.to_location_json())
@list_route(methods=['POST']) @list_route(methods=['POST'])
def wifilocate(self, request): def wifilocate(self, request):