diff options
| author | Bobby <[email protected]> | 2023-06-16 21:33:29 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-06-16 21:33:29 -0400 |
| commit | aa878f2006c6bc4fffa085f38afa0c68ffeb6823 (patch) | |
| tree | 35a3c139b72c90ebb27675d090a7cec99d6652cb /blog/feed.py | |
| parent | bd4f1f5cbaa1926fc8908c4d0c9b98d5998e2405 (diff) | |
| download | thatcomputerscientist-aa878f2006c6bc4fffa085f38afa0c68ffeb6823.tar.xz thatcomputerscientist-aa878f2006c6bc4fffa085f38afa0c68ffeb6823.zip | |
RSS Sending only public posts
Diffstat (limited to 'blog/feed.py')
| -rw-r--r-- | blog/feed.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blog/feed.py b/blog/feed.py index 974f5e5a..93a8b060 100644 --- a/blog/feed.py +++ b/blog/feed.py @@ -32,7 +32,7 @@ class RSSFeed(Feed): feed_type = feedgenerator.Rss201rev2Feed def items(self): - return Post.objects.all().order_by('-date') + return Post.objects.all().filter(is_public=True).order_by('-date') def item_title(self, item): return item.title |
