fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify transitional files a bit.
[wolnelektury.git]
/
src
/
experiments
/
views.py
diff --git
a/src/experiments/views.py
b/src/experiments/views.py
index
71c514a
..
001b32a
100644
(file)
--- a/
src/experiments/views.py
+++ b/
src/experiments/views.py
@@
-1,17
+1,5
@@
from django.views.generic import TemplateView
from django.views.generic import TemplateView
-from django.conf import settings
class MainSwitchView(TemplateView):
template_name = 'experiments/main_switch.html'
class MainSwitchView(TemplateView):
template_name = 'experiments/main_switch.html'
-
- def get_context_data(self):
- ctx = super().get_context_data()
- ctx['experiments'] = [
- {
- "config": conf,
- "value": self.request.EXPERIMENTS.get(conf['slug'])
- }
- for conf in settings.EXPERIMENTS
- ]
- return ctx