summaryrefslogtreecommitdiffstats
path: root/dashboard/src/resource_inventory/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/src/resource_inventory/views.py')
-rw-r--r--dashboard/src/resource_inventory/views.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/dashboard/src/resource_inventory/views.py b/dashboard/src/resource_inventory/views.py
index 7e73006..2937bd7 100644
--- a/dashboard/src/resource_inventory/views.py
+++ b/dashboard/src/resource_inventory/views.py
@@ -8,17 +8,16 @@
##############################################################################
-from django.shortcuts import render
-from django.views import View
from django.views.generic import TemplateView
from resource_inventory.models import Host
+
class HostView(TemplateView):
template_name = "resource/hosts.html"
def get_context_data(self, **kwargs):
context = super(HostView, self).get_context_data(**kwargs)
hosts = Host.objects.filter(working=True)
- context.update({'hosts':hosts, 'title':"Hardware Resources"})
+ context.update({'hosts': hosts, 'title': "Hardware Resources"})
return context