From 3cc8af47e5ccb28c929cfb17dddf22e952792364 Mon Sep 17 00:00:00 2001 From: d0c Date: Fri, 17 Feb 2023 14:35:07 +0100 Subject: [PATCH] screen serializer --- suitablephones/serializers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/suitablephones/serializers.py b/suitablephones/serializers.py index 6821b3e..53ba572 100644 --- a/suitablephones/serializers.py +++ b/suitablephones/serializers.py @@ -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)