fix get_color() lookup also in space geometry view
This commit is contained in:
parent
9eb832b048
commit
66d91e071f
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,8 @@ class EditorViewSet(ViewSet):
|
||||||
raise ValidationError('No level or space specified.')
|
raise ValidationError('No level or space specified.')
|
||||||
|
|
||||||
def _get_geojsons(self, obj):
|
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'])
|
@list_route(methods=['get'])
|
||||||
def geometrystyles(self, request, *args, **kwargs):
|
def geometrystyles(self, request, *args, **kwargs):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue