Commit de05f37f authored by okhin's avatar okhin 🚴

Adding the missing method to serialize

parent f7a20e81
Pipeline #2516 passed with stages
in 2 minutes and 58 seconds
......@@ -13,6 +13,9 @@ class TagListSerializer(serializers.Field):
return [tag.name 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")
......
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