fix wrong error message whan space is not found in mapdata api
This commit is contained in:
parent
5ea4d7229a
commit
9502e247d1
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class MapdataViewSet(ReadOnlyModelViewSet):
|
|||
try:
|
||||
space = Space.objects.get(pk=request.GET['space'])
|
||||
except Space.DoesNotExist:
|
||||
raise NotFound(detail=_('section not found.'))
|
||||
raise NotFound(detail=_('space not found.'))
|
||||
qs = qs.filter(space=space)
|
||||
return Response([obj.serialize(geometry=geometry) for obj in qs.order_by('id')])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue