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): ...@@ -20,10 +20,9 @@ class TagListSerializer(serializers.Field):
class ArticleSerializer(serializers.ModelSerializer): class ArticleSerializer(serializers.ModelSerializer):
#: List of short tags to describe the article (eg. "Privacy", "Copyright") #: List of short tags to describe the article (eg. "Privacy", "Copyright")
tags = TagListSerializer(help_text=""" tags = TagListSerializer(help_text="""
List of short tags to describe the article (eg."Privacy", "Copyright"). List of short tags to describe the article (eg."Privacy, Copyright").
Can also be a list of tags or an empty list. Must be a list of tags, coma separated (or an empty string).
""") """)
und_score_up = serializers.IntegerField( und_score_up = serializers.IntegerField(
required=False, required=False,
help_text="This is used to increase the vote count by this value") help_text="This is used to increase the vote count by this value")
......
...@@ -25,7 +25,9 @@ class ArticleViewSet(ArticleMixin, viewsets.ModelViewSet): ...@@ -25,7 +25,9 @@ class ArticleViewSet(ArticleMixin, viewsets.ModelViewSet):
create: create:
Create an article from its URL and inserts it with the 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``` 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