Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
La Quadrature du Net
rpteam
rp
Commits
8a544a2c
Commit
8a544a2c
authored
May 06, 2019
by
Okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
apps/rp/api/serializers.py
apps/rp/api/serializers.py
+2
-3
apps/rp/api/views.py
apps/rp/api/views.py
+3
-1
No files found.
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 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
(
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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