Commit b25bc58b authored by okhin's avatar okhin 🚴

Ajout du champ und_score au Serializer d'Article

parent 654b3e26
Pipeline #2575 passed with stages
in 3 minutes and 42 seconds
...@@ -37,7 +37,7 @@ class ArticleSerializer(serializers.ModelSerializer): ...@@ -37,7 +37,7 @@ class ArticleSerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = Article model = Article
fields = ('id', 'url', 'title', 'tags', 'extracts', 'status', fields = ('id', 'url', 'title', 'tags', 'extracts', 'status',
'und_score_up', 'und_score_down') 'und_score_up', 'und_score_down', 'und_score')
def create(self, validated_data): def create(self, validated_data):
article = Article.add_new_url(**validated_data) article = Article.add_new_url(**validated_data)
......
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