fix wrong error message whan space is not found in mapdata api

This commit is contained in:
Laura Klünder 2017-06-10 14:48:50 +02:00
parent 5ea4d7229a
commit 9502e247d1

View file

@ -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')])