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)