diff options
Diffstat (limited to 'dashboard/src/api/serializers.py')
-rw-r--r-- | dashboard/src/api/serializers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dashboard/src/api/serializers.py b/dashboard/src/api/serializers.py index dc79d9d..c371a92 100644 --- a/dashboard/src/api/serializers.py +++ b/dashboard/src/api/serializers.py @@ -17,10 +17,11 @@ from dashboard.models import Server, Resource, ResourceStatus class BookingSerializer(serializers.ModelSerializer): installer_name = serializers.CharField(source='installer.name') scenario_name = serializers.CharField(source='scenario.name') + opsys_name = serializers.CharField(source='opsys.name') class Meta: model = Booking - fields = ('id', 'resource_id', 'start', 'end', 'installer_name', 'scenario_name', 'purpose') + fields = ('id', 'resource_id', 'start', 'end', 'opsys_name', 'installer_name', 'scenario_name', 'purpose') class ServerSerializer(serializers.ModelSerializer): |