Commits

Guilherme Gondim committed 0fe0ef9

update feeds module

  • Participants
  • Parent commits e56746b
  • Branches 2.x-exper1

Comments (0)

Files changed (1)

File diario/feeds/entries_by_author.py

 from django.utils.translation import ugettext as _
 
 from diario.feeds.entries import RssEntriesFeed
-from diario.models import Entry
 
 
-class RssEntriesByAuthorFeed(RssEntriesFeed):
+class BaseRssEntriesByAuthorFeed(RssEntriesFeed):
 
     def get_object(self, request, username):
         return get_object_or_404(User, username__exact=username)
         return reverse('diario-author-entry-list', args=[user.username])
 
     def get_query_set(self, user):
-        queryset = Entry.on_site.visible().filter(author=user)
-        return queryset.order_by('-pub_date')
+        raise NotImplementedError
 
     def items(self, user):
         return self.get_query_set(user)[:15]
 
 
-class AtomEntriesByAuthorFeed(RssEntriesByAuthorFeed):
+class BaseAtomEntriesByAuthorFeed(RssEntriesByAuthorFeed):
     feed_type = Atom1Feed
-    subtitle = RssEntriesByAuthorFeed.description
+    subtitle = BaseRssEntriesByAuthorFeed.description