summaryrefslogtreecommitdiff
path: root/program/urls.py
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-03-12 15:14:15 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-03-12 15:14:15 (GMT)
commit3e1c4f43fb5ea31d729f92a1bc71b622c2531ab2 (patch)
tree756406f791b2ca8915e39701e534fa19a27b7539 /program/urls.py
parent235719f0621b5e36d877d76cfaf40cdb43033a6e (diff)
renamed model attributes to be more consistent, updated templates accordingly. added recommendations view and template.
Diffstat (limited to 'program/urls.py')
-rw-r--r--program/urls.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/urls.py b/program/urls.py
index 850fbdd..9dfc811 100644
--- a/program/urls.py
+++ b/program/urls.py
@@ -3,12 +3,13 @@ from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from models import Host, Show, TimeSlot
-from views import ShowListView
+from views import RecommendationsView, ShowListView
urlpatterns = patterns('',
url('^hosts/$', ListView.as_view(model=Host,context_object_name='host_list')),
url('^host/(?P<pk>\d+)/$', DetailView.as_view(model=Host), name='host-detail'),
- url('^shows/$', ShowListView.as_view(model=Show)),
+ url('^recommendations/$', RecommendationsView.as_view()),
+ url('^shows/$', ShowListView.as_view()),
url('^show/(?P<slug>[\w-]+)/$', DetailView.as_view(model=Show), name='show-detail'),
url('^timeslot/(?P<pk>\d+)/$', DetailView.as_view(model=TimeSlot, context_object_name='timeslot'), name='timeslot-detail'),
) \ No newline at end of file