diff options
Diffstat (limited to 'app/posts/views')
-rw-r--r-- | app/posts/views/podcast_views.py (renamed from app/posts/views/src_views.py) | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/app/posts/views/src_views.py b/app/posts/views/podcast_views.py index 990088f..49e25d9 100644 --- a/app/posts/views/src_views.py +++ b/app/posts/views/podcast_views.py @@ -10,29 +10,29 @@ from ..models import Post, PostType from taxonomy.models import Category -class SrcListView(PaginatedListView): +class PodcastListView(PaginatedListView): model = Post - template_name="posts/src_list.html" + template_name="posts/podcast_list.html" def get_queryset(self): - queryset = super(SrcListView, self).get_queryset() - return queryset.filter(post_type=PostType.SRC).filter(status__exact=1).order_by('-pub_date') + queryset = super(PodcastListView, self).get_queryset() + return queryset.filter(post_type=PostType.PODCAST).filter(status__exact=1).order_by('-pub_date') def get_context_data(self, **kwargs): # Call the base implementation first to get a context - context = super(SrcListView, self).get_context_data(**kwargs) + context = super(PodcastListView, self).get_context_data(**kwargs) #context['topics'] = Topic.objects.all() - context['breadcrumbs'] = ['src',] + context['breadcrumbs'] = ['podcast',] return context -class SrcDetailView(DetailView): +class PodcastDetailView(DetailView): model = Post slug_field = "slug" - template_name="posts/src_detail.html" + template_name="posts/podcast_detail.html" -class SrcDetailViewTXT(SrcDetailView): +class PodcastDetailViewTXT(PodcastDetailView): template_name = "posts/jrnl_detail.txt" @@ -49,14 +49,14 @@ class TopicListView(ListView): return context -class SrcRSSFeedView(Feed): - title = "luxagraf:src Code and Technology" - link = "/src/" +class PodcastRSSFeedView(Feed): + title = "The Lulu and Birdie Podcast" + link = "/podcasts/" description = "Latest postings to luxagraf.net/src" 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(post_type=PostType.PODCAST).filter(status__exact=1).order_by('-pub_date')[:10] """ |