summaryrefslogtreecommitdiff
path: root/app/posts/views/range_views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-03-10 09:31:05 -0500
committerluxagraf <sng@luxagraf.net>2024-03-10 09:31:05 -0500
commit21795671955fb4d675b740bba73b4d4f90d37739 (patch)
tree04e4ea4c05e2512876916669854b1ef5aa4f6e7c /app/posts/views/range_views.py
parente491ff1a198303d36abc2dbd2b7e7a9760542d8c (diff)
posts: added template option for photo posts, got rid of some things
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