Commit de05f37f authored by Okhin's avatar Okhin
Browse files

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 [ 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