2016-07-13 20:37:20 +00:00
|
|
|
from collections import OrderedDict
|
|
|
|
|
2016-08-04 21:03:39 +00:00
|
|
|
import datetime
|
2016-08-07 13:49:30 +00:00
|
|
|
from django.views.generic import ListView, TemplateView, DetailView
|
2016-12-28 23:15:13 +00:00
|
|
|
from camps.mixins import CampViewMixin
|
2016-07-13 20:37:20 +00:00
|
|
|
|
|
|
|
from . import models
|
|
|
|
|
2016-08-08 17:45:32 +00:00
|
|
|
|
2016-12-25 14:52:55 +00:00
|
|
|
class SpeakerDetailView(CampViewMixin, DetailView):
|
2016-08-08 17:45:32 +00:00
|
|
|
model = models.Speaker
|
|
|
|
template_name = 'speaker_detail.html'
|
|
|
|
|
2016-12-25 14:52:55 +00:00
|
|
|
|
|
|
|
class SpeakerListView(CampViewMixin, ListView):
|
2016-08-08 17:36:13 +00:00
|
|
|
model = models.Speaker
|
|
|
|
template_name = 'speaker_list.html'
|
|
|
|
|
2016-12-25 14:52:55 +00:00
|
|
|
|
|
|
|
class EventListView(CampViewMixin, ListView):
|
2016-08-08 17:36:13 +00:00
|
|
|
model = models.Event
|
|
|
|
template_name = 'event_list.html'
|
2016-07-13 20:37:20 +00:00
|
|
|
|
2016-12-25 14:52:55 +00:00
|
|
|
|
|
|
|
class ProgramOverviewView(CampViewMixin, ListView):
|
2016-07-13 20:37:20 +00:00
|
|
|
model = models.Event
|
2016-08-04 21:03:39 +00:00
|
|
|
template_name = 'program_overview.html'
|
2016-07-13 20:37:20 +00:00
|
|
|
|
2016-08-04 21:03:39 +00:00
|
|
|
|
2016-12-25 14:52:55 +00:00
|
|
|
class ProgramDayView(CampViewMixin, TemplateView):
|
2016-08-04 21:03:39 +00:00
|
|
|
template_name = 'program_day.html'
|
|
|
|
|
2016-08-07 13:49:30 +00:00
|
|
|
|
2016-12-25 14:52:55 +00:00
|
|
|
class EventDetailView(CampViewMixin, DetailView):
|
2016-08-07 13:49:30 +00:00
|
|
|
model = models.Event
|
|
|
|
template_name = 'program_event_detail.html'
|
|
|
|
|
2016-12-25 14:52:55 +00:00
|
|
|
|