diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2017-12-01 12:11:12 -0500 |
---|---|---|
committer | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2017-12-13 10:07:58 -0500 |
commit | a6250e99eaa3a3525ea58904d77bbfcd555f208c (patch) | |
tree | 844a832cf65ed323f89e9bca924331483bf893f5 /dashboard/src/api | |
parent | cde5479d94eb3ca175df8b8e3d1f7dec8b7bbda4 (diff) |
Add Dashboard OS Selection Menu on Booking
JIRA: PHAROS-326
Implement dropdown menu on pod booking page for user to
select base OS, as well as associated support in API and
pod status/booking status views
This patch includes the migration file mentioned by Parker Berbarian
Change-Id: I46a7b0e5e7020a89bc8fa0fe53c10bbda14a2e2d
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
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 237ca02..23b41ec 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): |