Commit 8a544a2c authored by Okhin's avatar Okhin
Browse files

Fix the tags docs to reflect the reality of code

parent 3d1337e1
Pipeline #2580 passed with stages
in 3 minutes and 8 seconds
......@@ -20,10 +20,9 @@ class TagListSerializer(serializers.Field):
class ArticleSerializer(serializers.ModelSerializer):
#: List of short tags to describe the article (eg. "Privacy", "Copyright")
tags = TagListSerializer(help_text="""
List of short tags to describe the article (eg."Privacy", "Copyright").
Can also be a list of tags or an empty list.
List of short tags to describe the article (eg."Privacy, Copyright").
Must be a list of tags, coma separated (or an empty string).
und_score_up = serializers.IntegerField(
help_text="This is used to increase the vote count by this value")
......@@ -25,7 +25,9 @@ class ArticleViewSet(ArticleMixin, viewsets.ModelViewSet):
Create an article from its URL and inserts it with the
status _NEW_.
status _NEW_. If the article already exists, it is upvoted
by one, and the tags are merged (in case new tags are given
to this command).
permissions ```None```
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