Commit 8b1f4fd4 authored by okhin's avatar okhin 🚴
Browse files

Merge branch '11-api-rest-push-pull-contenu' into 'rp2'

Adding the missing method to serialize

See merge request !20
parents 202d031a de05f37f
Pipeline #2517 failed with stages
in 3 minutes and 51 seconds
......@@ -13,6 +13,9 @@ class TagListSerializer(serializers.Field):
return [ for tag in obj.all()]
return obj
def to_internal_value(self, data):
return [tag.strip() for tag in data.split(",")]
class ArticleSerializer(serializers.ModelSerializer):
#: List of short tags to describe the article (eg. "Privacy", "Copyright")
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