from rest_framework     import serializers
from .models            import Equipment

class EquipmentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Equipment
        fields = ["id", "hostname", "ip", "is_active", "owner"]
        read_only_fields = ["owner"]