]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/blog/feeds.py
Change to Django 1.3 syntax for admin site
[sommitrealweird.git] / sommitrealweird / blog / feeds.py
index 69eb81fe346d323dacb11add90740623ae66e7e4..064f22a5c4671c2b8e63730c28a1e6a9b39f21d0 100644 (file)
@@ -13,9 +13,9 @@ class LatestBlogEntriesRss(Feed):
 
     def items(self):
         try:
-            return BlogEntry.objects.all().order_by('-publish_date')[:20]
+            return BlogEntry.objects.filter(islive=True).order_by('-publish_date')[:20]
         except:
-            return BlogEntry.objects.all().order_by('-publish_date')
+            return BlogEntry.objects.filter(islive=True).order_by('-publish_date')
 
     def author_name(self, obj):
         return "Brett Parker"