screen serializer

This commit is contained in:
d0c 2023-02-17 14:35:07 +01:00
parent 512b3dfba9
commit 3cc8af47e5

View file

@ -14,7 +14,10 @@ class BluetoothSerializer(serializers.ModelSerializer):
model = Bluetooth
exclude = ["id"]
class ScreenSerializer(serializers.ModelSerializer):
class Meta:
model = Screen
exclude = ["id"]
class DeviceSerializer(serializers.ModelSerializer):
bluetooth = BluetoothSerializer(many=False, read_only=True)