location.pk instead location.id
This commit is contained in:
parent
e2025e65fe
commit
d77585d6a6
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ class LocationViewSetBase(RetrieveModelMixin, GenericViewSet):
|
||||||
return redirect('../' + str(location.target.pk) + '/geometry/')
|
return redirect('../' + str(location.target.pk) + '/geometry/')
|
||||||
|
|
||||||
return Response({
|
return Response({
|
||||||
'id': location.id,
|
'id': location.pk,
|
||||||
'level': getattr(location, 'level_id', None),
|
'level': getattr(location, 'level_id', None),
|
||||||
'geometry': location.get_geometry(
|
'geometry': location.get_geometry(
|
||||||
detailed_geometry=MapdataViewSet.can_access_geometry(request, location)
|
detailed_geometry=MapdataViewSet.can_access_geometry(request, location)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue