Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
8a544a2c
Commit
8a544a2c
authored
May 06, 2019
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/rp/api/serializers.py
View file @
8a544a2c
...
...
@@ -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
li
st.
List of short tags to describe the article (eg."Privacy, Copyright").
Must
be a list of tags
, coma separated (
or an empty st
ring)
.
"""
)
und_score_up
=
serializers
.
IntegerField
(
required
=
False
,
help_text
=
"This is used to increase the vote count by this value"
)
...
...
apps/rp/api/views.py
View file @
8a544a2c
...
...
@@ -25,7 +25,9 @@ class ArticleViewSet(ArticleMixin, viewsets.ModelViewSet):
create:
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```
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment