Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (24 sloc) 0.892 kb
from fusite.fu.models import Issue,Author,Article,Comment
from django.contrib.syndication.feeds import Feed
from django.utils.feedgenerator import Atom1Feed
class MainFeed(Feed):
feed_type = Atom1Feed
title = "the-fu.com"
link = "/"
subtitle = "gameplans for dreamers"
def items(self):
return Article.objects.order_by("-modified")[:20]
class CommentFeed(Feed):
feed_type = Atom1Feed
title = "the-fu.com: comments"
link = "/"
subtitle = "gameplans for dreamers"
def items(self):
return Comment.objects.filter(status="approved").order_by("-timestamp")[:20]
class CommentModerationFeed(Feed):
feed_type = Atom1Feed
title = "the-fu.com: comments to moderate"
link = "/"
subtitle = "gameplans for dreamers"
def items(self):
return Comment.objects.filter(status="pending").order_by("-timestamp")
Jump to Line
Something went wrong with that request. Please try again.