fix to_location_json
This commit is contained in:
parent
f9b977f95e
commit
ef7b831849
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue