use space.pk instead of space.id so everything works wrapped
This commit is contained in:
parent
376a6fddbf
commit
b773373d73
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class EditorViewSet(ViewSet):
|
|||
def _get_level_geometries(self, level):
|
||||
buildings = level.buildings.all()
|
||||
buildings_geom = cascaded_union([building.geometry for building in buildings])
|
||||
spaces = {space.id: space for space in level.spaces.all()}
|
||||
spaces = {space.pk: space for space in level.spaces.all()}
|
||||
holes_geom = []
|
||||
for space in spaces.values():
|
||||
if space.outside:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue