diff options
author | Christian Pointner <equinox@helsinki.at> | 2021-03-03 12:43:54 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2021-03-03 12:44:02 (GMT) |
commit | 5d63bb9963ae6e41fc6c2cca97834b40beb71a0b (patch) | |
tree | f77d396c2f2c914ffb4ede841cbd36fad9be78c6 /program/views.py | |
parent | b23c473e3af9e7c4e5c7aee6bfc93cde40737d94 (diff) |
remove views not used by new homepage
Diffstat (limited to 'program/views.py')
-rw-r--r-- | program/views.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/program/views.py b/program/views.py index 2a7609c..61a6207 100644 --- a/program/views.py +++ b/program/views.py @@ -259,28 +259,6 @@ class RecommendationsListViewV2(ListView): start__range=(now, end))).order_by('start')[:20] -class RecommendationsBoxViewV2(RecommendationsListViewV2): - template_name = 'v2/recommendation.html' - - -class CurrentShowBoxViewV2(TemplateView): - context_object_name = 'recommendation_list' - template_name = 'v2/current_show.html' - - def get_context_data(self, **kwargs): - current_timeslot = TimeSlot.objects.get_or_create_current() - previous_timeslot = current_timeslot.get_previous_by_start() - next_timeslot = current_timeslot.get_next_by_start() - after_next_timeslot = next_timeslot.get_next_by_start() - - context = super(CurrentShowBoxViewV2, self).get_context_data(**kwargs) - context['current_timeslot'] = current_timeslot - context['previous_timeslot'] = previous_timeslot - context['next_timeslot'] = next_timeslot - context['after_next_timeslot'] = after_next_timeslot - return context - - class DayScheduleViewV2(TemplateView): template_name = 'v2/day_schedule.html' |