Show More
@@ -57,10 +57,10 b' class ThreadPostsFeed(Feed):' | |||
|
57 | 57 | description_template = 'boards/rss/post.html' |
|
58 | 58 | |
|
59 | 59 | def items(self, obj): |
|
60 |
return |
|
|
60 | return obj.thread_new.get_replies() | |
|
61 | 61 | |
|
62 | 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 | 65 | def item_title(self, item): |
|
66 | 66 | return item.title |
@@ -76,4 +76,4 b' class ThreadPostsFeed(Feed):' | |||
|
76 | 76 | return item.pub_time |
|
77 | 77 | |
|
78 | 78 | def title(self, obj): |
|
79 |
return |
|
|
79 | return obj.title |
@@ -38,7 +38,7 b" urlpatterns = patterns(''," | |||
|
38 | 38 | # /boards/thread/ |
|
39 | 39 | url(r'^thread/(?P<post_id>\w+)/$', views.thread.ThreadView.as_view(), |
|
40 | 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 | 42 | .as_view(), name='thread_mode'), |
|
43 | 43 | |
|
44 | 44 | # /boards/post_admin/ |
General Comments 0
You need to be logged in to leave comments.
Login now