summaryrefslogtreecommitdiff
path: root/app/posts/views/range_views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/views/range_views.py')
-rw-r--r--app/posts/views/range_views.py21
1 files changed, 2 insertions, 19 deletions
diff --git a/app/posts/views/range_views.py b/app/posts/views/range_views.py
index b358051..7ef5054 100644
--- a/app/posts/views/range_views.py
+++ b/app/posts/views/range_views.py
@@ -20,30 +20,13 @@ from sightings.models import Sighting
class RangeListView(PaginatedListView):
"""
- Return a list of Newsletter posts in reverse chronological order
+ Return a list of Essay posts in reverse chronological order
"""
model = Post
template_name = "posts/range_list.html"
- queryset = Post.objects.filter(post_type__in=[PostType.ESSAY,PostType.FILM],status=1).order_by('-pub_date')
+ queryset = Post.objects.filter(post_type__in=[PostType.ESSAY],status=1).order_by('-pub_date')
def get_context_data(self, **kwargs):
context = super(RangeListView, self).get_context_data(**kwargs)
context['breadcrumbs'] = ['range',]
return context
-
-
-class RangeRSSFeedView(Feed):
- title = "Range: A weekly photo, developed"
- link = "/range/"
- description = "Range: A weekly photo, developed"
- description_template = 'feeds/blog_description.html'
-
- def items(self):
- return Post.objects.filter(status__exact=1).filter(post_type=PostType.RANGE).order_by('-pub_date')[:10]
-
- def item_pubdate(self, item):
- """
- Takes an item, as returned by items(), and returns the item's
- pubdate.
- """
- return item.pub_date