fix get_color() lookup also in space geometry view

This commit is contained in:
Laura Klünder 2017-06-16 18:45:34 +02:00
parent 9eb832b048
commit 66d91e071f

View file

@ -135,7 +135,8 @@ class EditorViewSet(ViewSet):
raise ValidationError('No level or space specified.')
def _get_geojsons(self, obj):
return ((obj.to_shadow_geojson(),) if hasattr(obj, 'to_shadow_geojson') else ()) + (obj.to_geojson(),)
return (((obj.to_shadow_geojson(),) if hasattr(obj, 'to_shadow_geojson') else ()) +
(obj.to_geojson(instance=obj),))
@list_route(methods=['get'])
def geometrystyles(self, request, *args, **kwargs):