mirror of
https://github.com/Dadechin/Dashboard-XRoom.git
synced 2025-07-04 09:14:34 +00:00
get spaces
This commit is contained in:
parent
c6d10ee015
commit
d8da0aa5c3
|
@ -50,7 +50,7 @@ def addSpace(request):
|
||||||
return Response({"detail": "AssetBundleRoom not found."}, status=status.HTTP_404_NOT_FOUND)
|
return Response({"detail": "AssetBundleRoom not found."}, status=status.HTTP_404_NOT_FOUND)
|
||||||
|
|
||||||
# Assign the AssetBundleRoom instance to the data
|
# 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
|
# Pass the request object to the serializer context
|
||||||
serializer = SpaceSerializerforadd(data=data)
|
serializer = SpaceSerializerforadd(data=data)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user