get spaces

This commit is contained in:
mi1468 2025-05-27 14:57:09 +03:30
parent c6d10ee015
commit d8da0aa5c3

View File

@ -50,7 +50,7 @@ def addSpace(request):
return Response({"detail": "AssetBundleRoom not found."}, status=status.HTTP_404_NOT_FOUND)
# Assign the AssetBundleRoom instance to the data
data['assetBundleRoomId'] = asset_bundle_room
data['assetBundleRoomId'] = asset_bundle_room.id
# Pass the request object to the serializer context
serializer = SpaceSerializerforadd(data=data)