Verified Commit 04bcd303 authored by Thibaut Broggi's avatar Thibaut Broggi
Browse files

Add extracts in article API responses

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