summaryrefslogtreecommitdiff
path: root/program/views.py
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-02-27 11:38:02 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-02-27 11:38:02 (GMT)
commit36d8f7e5604f62bb51dcdb4dee4cc013bd0abda2 (patch)
tree8eb8aab36c2ca8f362b0f1bf555b7d229c88a136 /program/views.py
First commit
Diffstat (limited to 'program/views.py')
-rw-r--r--program/views.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/program/views.py b/program/views.py
new file mode 100644
index 0000000..c6974b9
--- /dev/null
+++ b/program/views.py
@@ -0,0 +1,17 @@
+from django.views.generic.list import ListView
+
+from models import BroadcastFormat, MusicFocus, Show, ShowInformation, ShowTopic
+
+class ShowListView(ListView):
+ context_object_name = 'show_list'
+ model = Show
+
+ def get_context_data(self, **kwargs):
+ context = super(ShowListView, self).get_context_data(**kwargs)
+
+ context['broadcast_format_list'] = BroadcastFormat.objects.all()
+ context['music_focus_list'] = MusicFocus.objects.all()
+ context['show_information_list'] = ShowInformation.objects.all()
+ context['show_topic_list'] = ShowTopic.objects.all()
+
+ return context \ No newline at end of file