Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
use get_content() for SC RSS
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelButkovic committed Oct 7, 2015
1 parent dc54a12 commit b0c76bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bulbs/feeds/views.py
Expand Up @@ -54,10 +54,10 @@ def get_queryset(self):
sc_slug = self.request.GET.get("special_coverage_slug")

if sc_id:
sc_ids = SpecialCoverage.objects.get(id=sc_id).query["included_ids"]
sc = SpecialCoverage.objects.get(id=sc_id)
elif sc_slug:
sc_ids = SpecialCoverage.objects.get(slug=sc_slug).query["included_ids"]
sc = SpecialCoverage.objects.get(slug=sc_slug)
else:
sc_ids = []
return self.model.objects.none()

return super(RSSView, self).get_queryset().filter(Ids(values=sc_ids))[:self.paginate_by]
return sc.get_content()[:self.paginate_by]

0 comments on commit b0c76bf

Please sign in to comment.