aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorJack Morgan <jack.morgan@intel.com>2018-01-08 23:56:21 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-08 23:56:21 +0000
commit6173050b6bfc3d96d3056c5de4c927f1b461fe6e (patch)
treec58f857f8734c41b48d3e43229aa235dfcce4152 /src/api
parentee1caa30008635717943bfdfecc692cde052a461 (diff)
parenteb75879a4632015b427d97ab945eaaa0bc26959a (diff)
Merge "Add Dashboard OS Selection Menu on Booking"
Diffstat (limited to 'src/api')
-rw-r--r--src/api/serializers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/serializers.py b/src/api/serializers.py
index 4478175..5ef32d6 100644
--- a/src/api/serializers.py
+++ b/src/api/serializers.py
@@ -16,10 +16,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):