tacticalrmm/api/djangormm/services/serializers.py

9 lines
215 B
Python

from rest_framework import serializers
from agents.models import Agent
class ServicesSerializer(serializers.ModelSerializer):
class Meta:
model = Agent
fields = ('hostname', 'pk', 'services',)