def get_context(self): worker_name = self.get_variables_context().get('WORKER_NAME') queues = Worker.get(name=worker_name).queues return { 'queues': queues, 'queue_names': sorted(map(lambda x: x.name, queues)) }
def get_context(self): return {'workers': Worker.all()}