devices.serializersΒΆ

Serializers for Device-related API endpoints.

Defines classes that handle validation and transformation of Device model instances to and from JSON.

Module ContentsΒΆ

class devices.serializers.DeviceSerializer(instance=None, data=empty, **kwargs)[source]ΒΆ

Bases: rest_framework.serializers.ModelSerializer[devices.models.DeviceModel]

Serializer for Device instances.

Handles conversion between Device model objects and JSON representations.

class Meta[source]ΒΆ

Metadata for DeviceSerializer, defining model and serialized fields.

model[source]ΒΆ
fields = '__all__'[source]ΒΆ