Browse Source

Update windows app

master
Joshua Rubingh 4 months ago
parent
commit
52866f1608
  1. 2
      VRE/apps/vre_apps/fixtures/vre_apps_initial_data.json
  2. 2
      VRE/apps/vre_apps/views.py

2
VRE/apps/vre_apps/fixtures/vre_apps_initial_data.json

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
"fields": {
"created_at": "2021-11-17T10:10:43.333Z",
"updated_at": "2021-11-17T10:10:43.333Z",
"slug": "windows10-vdi",
"slug": "windows-vdi",
"title": "VRW Windows",
"description": "A Virtual Workspace based on Windows",
"avatar": "vre_apptype/general/20211117101043.png",

2
VRE/apps/vre_apps/views.py

@ -43,7 +43,7 @@ class AppTypesList(ListAPIView): @@ -43,7 +43,7 @@ class AppTypesList(ListAPIView):
class AppTypeProfileSerializerMixin():
def get_serializer(self, *args, **kwargs):
if 'app_type' in self.kwargs:
if self.kwargs['app_type'] in ['windows10-vdi', 'linux-hpc-openstack']:
if self.kwargs['app_type'] in ['windows-vdi', 'linux-hpc-openstack']:
# TODO: Can this be stored in a DB with the app-type model??
return VRE_AppProfileVirtualMachineSerializer

Loading…
Cancel
Save