screen serializer
This commit is contained in:
parent
512b3dfba9
commit
3cc8af47e5
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue