Add extracts in article API responses

parent ba2b3c05
...@@ -6,4 +6,4 @@ from rp.models import Article ...@@ -6,4 +6,4 @@ from rp.models import Article
class ArticleSerializer(serializers.ModelSerializer): class ArticleSerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = Article model = Article
fields = ('id', 'url', 'title', 'und_score_up', 'und_score_down') fields = ('id', 'url', 'title', 'extracts', 'und_score_up', 'und_score_down')
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