diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-02-22 12:38:04 -0500 |
---|---|---|
committer | Parker Berberian <pberberian@iol.unh.edu> | 2019-02-22 12:41:32 -0500 |
commit | f54fc52fb6d137aabd00d16cb35a608456ac4bbc (patch) | |
tree | 8e945349199954789ff28473188762bf9d36c551 | |
parent | 011026903a94944258bf8c69aeb2700c6c57b02e (diff) |
Fixed Selection of single hosts in quick booking
Change-Id: I8ca860ee23f9df44e38da76d539729771d32c455
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
-rw-r--r-- | src/account/views.py | 2 | ||||
-rw-r--r-- | src/resource_inventory/models.py | 2 | ||||
-rw-r--r-- | src/workflow/forms.py | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/account/views.py b/src/account/views.py index 11689a1..6f390fa 100644 --- a/src/account/views.py +++ b/src/account/views.py @@ -228,7 +228,7 @@ def account_images_view(request): "images": my_images, "public_images": public_images, "used_images": used_images - } + } return render(request, template, context=context) diff --git a/src/resource_inventory/models.py b/src/resource_inventory/models.py index e1f2aa3..ebf63cc 100644 --- a/src/resource_inventory/models.py +++ b/src/resource_inventory/models.py @@ -266,7 +266,7 @@ class Image(models.Model): public = models.BooleanField(default=True) host_type = models.ForeignKey(HostProfile, on_delete=models.CASCADE) description = models.TextField() - os = models.ForeignKey(Opsys, null=True, on_delete=models.CASCADE) #sentinal? + os = models.ForeignKey(Opsys, null=True, on_delete=models.CASCADE) def __str__(self): return self.name diff --git a/src/workflow/forms.py b/src/workflow/forms.py index 726e7dd..03940d8 100644 --- a/src/workflow/forms.py +++ b/src/workflow/forms.py @@ -348,6 +348,8 @@ class FormUtils: slab['selected'] = 0 slab['selectable'] = 1 slab['follow'] = 1 + if not multiple_selectable_hosts: + slab['follow'] = 0 slab['multiple'] = 0 items[slab['id']] = slab mapping[slab['id']] = [] |