##// END OF EJS Templates
Fixed thread RSS
neko259 -
r580:7081c21d default
parent child Browse files
Show More
@@ -57,10 +57,10 b' class ThreadPostsFeed(Feed):'
57 description_template = 'boards/rss/post.html'
57 description_template = 'boards/rss/post.html'
58
58
59 def items(self, obj):
59 def items(self, obj):
60 return get_object_or_404(Post, id=obj).thread_new.get_replies()
60 return obj.thread_new.get_replies()
61
61
62 def get_object(self, request, post_id):
62 def get_object(self, request, post_id):
63 return post_id
63 return get_object_or_404(Post, id=post_id)
64
64
65 def item_title(self, item):
65 def item_title(self, item):
66 return item.title
66 return item.title
@@ -76,4 +76,4 b' class ThreadPostsFeed(Feed):'
76 return item.pub_time
76 return item.pub_time
77
77
78 def title(self, obj):
78 def title(self, obj):
79 return get_object_or_404(Post, id=obj).title
79 return obj.title
@@ -38,7 +38,7 b" urlpatterns = patterns('',"
38 # /boards/thread/
38 # /boards/thread/
39 url(r'^thread/(?P<post_id>\w+)/$', views.thread.ThreadView.as_view(),
39 url(r'^thread/(?P<post_id>\w+)/$', views.thread.ThreadView.as_view(),
40 name='thread'),
40 name='thread'),
41 url(r'^thread/(?P<post_id>\w+)/(?P<mode>\w+)/$', views.thread.ThreadView
41 url(r'^thread/(?P<post_id>\w+)/mode/(?P<mode>\w+)/$', views.thread.ThreadView
42 .as_view(), name='thread_mode'),
42 .as_view(), name='thread_mode'),
43
43
44 # /boards/post_admin/
44 # /boards/post_admin/
General Comments 0
You need to be logged in to leave comments. Login now