Commit ab0c8db4 authored by okhin's avatar okhin 🚴

Display the status of the article in the feeds

parent ba1a8794
......@@ -33,5 +33,5 @@ class ArticleSerializer(serializers.ModelSerializer):
class Meta:
model = Article
fields = ('id', 'url', 'title', 'tags', 'extracts',
fields = ('id', 'url', 'title', 'tags', 'extracts', 'status',
'und_score_up', 'und_score_down')
......@@ -5,7 +5,7 @@ from rp.models import Article
class ArticlesFeed(Feed):
title = "Revue de presse de la Quadrature"
link = "/feed/"
link = "/feeds/"
description = "La revue de presse recense les articles de presse relatifs aux sujets de la Quadrature. Elle est compilée chaque jour par ses bénévoles, à partir de la presse francophone et internationale. Bonne lecture !"
def __init__(self, **kwargs):
......@@ -18,6 +18,9 @@ class ArticlesFeed(Feed):
def item_title(self, item):
return item.title
def item_status(self, item):
return item.status
def item_description(self, item):
return item.extracts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment