diff options
author | luxagraf <sng@luxagraf> | 2021-02-13 19:07:30 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-02-13 19:07:30 -0500 |
commit | f02423e129970b1857c5a54e79c7046061ddd069 (patch) | |
tree | cc86c8ace678b00127ba8c6a6e34670f099cdc38 /app | |
parent | 99b4cc2a755afe7fd2e772e76d6e5385a9440bd2 (diff) |
src: dusted off RSS feed by popular demand
Diffstat (limited to 'app')
-rw-r--r-- | app/builder/views.py | 3 | ||||
-rw-r--r-- | app/posts/views/src_views.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/app/builder/views.py b/app/builder/views.py index 27385aa..e3c795e 100644 --- a/app/builder/views.py +++ b/app/builder/views.py @@ -62,6 +62,9 @@ def do_build(request): elif section == 'discursivepages': context = {'message': 'Writing Discursive Meditation Pages to Disk'} BuildPages("pages", "page", 'discursivemeditation.com').build() + elif section == 'srcrss': + context = {'message': 'Writing SrcRSS to Disk'} + BuildSrc("posts", "post").build_feed("src:feed") return render(request, 'admin/message.html', context) diff --git a/app/posts/views/src_views.py b/app/posts/views/src_views.py index c56b723..59c371c 100644 --- a/app/posts/views/src_views.py +++ b/app/posts/views/src_views.py @@ -65,7 +65,7 @@ class SrcRSSFeedView(Feed): description_template = 'feeds/blog_description.html' def items(self): - return SrcPost.objects.filter(status__exact=1).order_by('-pub_date')[:10] + return Post.objects.filter(status__exact=1).filter(post_type=PostType.SRC).order_by('-pub_date')[:10] """ |