|
@@ -125,9 +125,7 @@ def instances(request):
|
|
localcontext = {
|
|
localcontext = {
|
|
'groups' : groups,
|
|
'groups' : groups,
|
|
}
|
|
}
|
|
- if len(vinfo.all_instances) == 0:
|
|
|
|
- localcontext['noinstance'] = True
|
|
|
|
-
|
|
|
|
|
|
+
|
|
context.update(localcontext)
|
|
context.update(localcontext)
|
|
|
|
|
|
return render(request, 'config/instances.html', context)
|
|
return render(request, 'config/instances.html', context)
|
|
@@ -156,6 +154,8 @@ def instance_add(request):
|
|
context = viewinfo.context(vinfo)
|
|
context = viewinfo.context(vinfo)
|
|
localcontext = {
|
|
localcontext = {
|
|
}
|
|
}
|
|
|
|
+ if len(vinfo.all_instances) == 0:
|
|
|
|
+ localcontext['noinstance'] = True
|
|
context.update(localcontext)
|
|
context.update(localcontext)
|
|
|
|
|
|
return render(request, 'config/instance_add.html', context)
|
|
return render(request, 'config/instance_add.html', context)
|