from django.contrib.syndication.feeds import Feed from jayparlar.blog.models import Post class BlogPostFeed(Feed): title='jayparlar.com' link = '/blog/' description = "Updates on Jay Parlar's blog" def items(self): return Post.objects.filter(status__exact="Published").order_by('-pub_date')[:10]