diff options
-rw-r--r-- | app/builder/views.py | 3 | ||||
-rw-r--r-- | app/posts/views/src_views.py | 2 | ||||
-rw-r--r-- | design/templates/admin/buttons.html | 1 | ||||
-rw-r--r-- | design/templates/admin/index.html | 5 |
4 files changed, 10 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] """ diff --git a/design/templates/admin/buttons.html b/design/templates/admin/buttons.html index 4b169ea..647f946 100644 --- a/design/templates/admin/buttons.html +++ b/design/templates/admin/buttons.html @@ -55,6 +55,7 @@ <li class="item"><a href="/admin/build/build?id=pubs">Build Publications</a></li> <li class="item"><a href="/admin/build/build?id=resume">Build Resume</a></li> <li class="item"><a href="/admin/build/build?id=src">Build src</a></li> + <li class="item"><a href="/admin/build/build?id=srcrss">Build src RSS</a></li> </ul> </div> </div> diff --git a/design/templates/admin/index.html b/design/templates/admin/index.html index d2aae7c..b9ac578 100644 --- a/design/templates/admin/index.html +++ b/design/templates/admin/index.html @@ -122,6 +122,11 @@ td, th { <td><a href="/admin/links/link/add/" class="addlink">Add</a></td> <td><a href="/admin/build/build?id=fieldnotes">Build FieldNotes</a></td> </tr> + <tr> + <th scope="row"><a href="/admin/links/link/"> </a></th> + <td><a href="" class="addlink"> </a></td> + <td><a href="/admin/build/build?id=srcrss">Build src RSS</a></td> + </tr> </table> </div> {% for app in app_list %} |