devices.serializers¶
Serializers for Device-related API endpoints.
Defines classes that handle validation and transformation of Device model instances to and from JSON.
Classes¶
Serializer for Device instances. |
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.