aboutsummaryrefslogtreecommitdiffstats
path: root/aggregator
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-05-21 22:17:25 +0200
committerGravatar Tom Willemsen2012-05-21 22:17:25 +0200
commit8944ff3fba186e71a7349c1a06153f32650e77d4 (patch)
treef1c8b5eb561d73acd8f3c5cb7c339f931bdac343 /aggregator
parent112d426416d94396d7cfbbc8c2d7ac944a9c9d38 (diff)
downloadryuslash.org-8944ff3fba186e71a7349c1a06153f32650e77d4.tar.gz
ryuslash.org-8944ff3fba186e71a7349c1a06153f32650e77d4.zip
Remove comments
It was interesting to see, but I (personally) really don't need comments, someone else could still use it.
Diffstat (limited to 'aggregator')
-rw-r--r--aggregator/feeds.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/aggregator/feeds.py b/aggregator/feeds.py
index 3274ba3..75e5d4f 100644
--- a/aggregator/feeds.py
+++ b/aggregator/feeds.py
@@ -1,5 +1,4 @@
from django.contrib.syndication.views import Feed
-from django.contrib.comments.models import Comment
from .models import Post
@@ -22,23 +21,3 @@ class LatestPostsFeed(Feed):
def item_pubdate(self, item):
return item.updated
-
-class LatestCommentsFeed(Feed):
- title = "ryuslash's latest comments"
- link = "/"
- description = "Comments on posts"
-
- def items(self):
- return Comment.objects.all()
-
- def item_title(self, item):
- return 'Comment for %s' % item.content_object.title
-
- def item_description(self, item):
- return item.comment
-
- def item_link(self, item):
- return "/post/%s/" % item.object_pk
-
- def item_pubdate(self, item):
- return item.submit_date