Commits

Guilherme Gondim committed e56746b

update feeds module

Comments (0)

Files changed (1)

diario/feeds/entries.py

 from django.core.urlresolvers import reverse, NoReverseMatch
 from django.utils.translation import ugettext as _
 
-from diario.models import Entry
 
-
-class RssEntriesFeed(Feed):
+class BaseRssEntriesFeed(Feed):
     description = _('Latest entries on Weblog')
     title_template = 'feeds/diario_title.html'
     description_template = 'feeds/diario_description.html'
         return reverse('diario-entry-list')
 
     def get_query_set(self):
-        return Entry.on_site.visible().order_by('-pub_date')
+        raise NotImplementedError
 
     def items(self):
         return self.get_query_set()[:15]
         return entry.pub_date
 
 
-class AtomEntriesFeed(RssEntriesFeed):
+class BaseAtomEntriesFeed(BaseRssEntriesFeed):
     feed_type = Atom1Feed
-    subtitle = RssEntriesFeed.description
+    subtitle = BaseRssEntriesFeed.description