def get_context_data(self, **kwargs): # todo reflect previous form back? d = DjangolessVMManager() context = super(WorkerStatusListView, self).get_context_data(**kwargs) context['workers_running'] = len(d.get_worker_instances_running()) context['pending_scans'] = d.get_pending_scans() return context