From 843e7e06709a35a162ddb28e9eef528870e2c0f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Wed, 20 Jun 2018 15:12:45 +0300 Subject: added urls for rss feeds --- weblog/feeds.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'weblog/feeds.py') diff --git a/weblog/feeds.py b/weblog/feeds.py index d7ccb23..7e567c2 100644 --- a/weblog/feeds.py +++ b/weblog/feeds.py @@ -5,20 +5,6 @@ from weblog.apps import SETTINGS as blog_settings from django.utils.translation import ugettext_lazy as _, pgettext_lazy from django.utils import translation -class MainFeed(Feed): - title = _('%(blog_title)s RSS feed') % {'blog_title': blog_settings['blog_title']} - link = reverse('weblog:Index') - description = _('Latest blog posts on %(blog_title)s') % {'blog_title': blog_settings['blog_title']} - - def items(self): - return BlogPost.objects.order_by('-publish_date')[:blog_settings['posts_per_page']] - - def item_title(self, item): - return item.title - - def item_description(self, item): - return item.content - class BlogFeed(Feed): def get_object(self, request, category_slug=None): -- cgit v1.2.3