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 | eb75879a4632015b427d97ab945eaaa0bc26959a (patch) | |
tree | 70bf5143ab1c2fc00272f304923d161be37f6b8e /src/api | |
parent | 42763c659dd029cbe2c88e2292f638fd0735825e (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 'src/api')
-rw-r--r-- | src/api/serializers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/serializers.py b/src/api/serializers.py index 237ca02..23b41ec 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): |