1 from django.views.generic import TemplateView
4 class MainSwitchView(TemplateView):
5 template_name = 'experiments/main_switch.html'
7 def get_context_data(self):
10 e for e in self.request.EXPERIMENTS.values()
11 if e.switchable or self.request.user.is_staff