Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only published entries in blog feed.

  • Loading branch information...
commit ba8fd9239664eaa0f7d364eb4f08f87db5b77dbd 1 parent 809ff57
@jphalip jphalip authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  django_website/blog/
3  django_website/blog/
@@ -1,6 +1,5 @@
from __future__ import absolute_import
-import datetime
from django.contrib.syndication.views import Feed
from .models import Entry
@@ -10,7 +9,7 @@ class WeblogEntryFeed(Feed):
description = "Latest news about Django, the Python Web framework."
def items(self):
- return Entry.objects.filter([:10]
+ return Entry.objects.published()[:10]
def item_pubdate(self, item):
return item.pub_date
Please sign in to comment.
Something went wrong with that request. Please try again.