aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/account/views.py2
-rw-r--r--src/resource_inventory/models.py2
-rw-r--r--src/workflow/forms.py2
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']] = []