Mercurial > public > sg101
diff ygroup/urls.py @ 1080:db8f5b3204b7
Fix Yahoo Group post view for V3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 23 Apr 2016 00:06:32 -0500 |
parents | 5d208c3321ce |
children |
line wrap: on
line diff
--- a/ygroup/urls.py Sat Apr 23 00:01:40 2016 -0500 +++ b/ygroup/urls.py Sat Apr 23 00:06:32 2016 -0500 @@ -3,10 +3,8 @@ """ from django.conf.urls import url -from django.views.generic import DetailView -from ygroup.models import Post -from ygroup.views import ThreadIndexView, ThreadView +from ygroup.views import ThreadIndexView, ThreadView, PostView urlpatterns = [ @@ -17,7 +15,6 @@ ThreadView.as_view(), name='ygroup-thread_view'), url(r'^post/(?P<pk>\d+)/$', - DetailView.as_view(model=Post, context_object_name='post', - template_name='ygroup/v3/post.html'), + PostView.as_view(), name='ygroup-post_view'), ]