diff options
author | Jack Morgan <jack.morgan@intel.com> | 2018-01-08 23:56:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-08 23:56:21 +0000 |
commit | b55a6c39179813070bef63121965a4a045ac13ad (patch) | |
tree | a02c90db75d5e1d2f46008663337126cdf9dc1ca /dashboard/src/api | |
parent | ac0ae9e3069e582fcaeaff35f28a5b45343bae84 (diff) | |
parent | a6250e99eaa3a3525ea58904d77bbfcd555f208c (diff) |
Merge "Add Dashboard OS Selection Menu on Booking"
Diffstat (limited to 'dashboard/src/api')
-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 4478175..5ef32d6 100644 --- a/dashboard/src/api/serializers.py +++ b/dashboard/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): |