Commit b0769099 authored by Okhin's avatar Okhin
Browse files

More method documentation. Needs to find why there's a request body.

parent bea08e7c
Pipeline #2578 passed with stages
in 3 minutes and 10 seconds
......@@ -10,6 +10,26 @@ ArticleMixin = get_viewset_transition_actions_mixin(Article)
class ArticleViewSet(ArticleMixin, viewsets.ModelViewSet):
List all known articles in database.
Create an article from its URL and inserts it with the
status NEW
Get a specific article by id
Change the content of an article
Change only some fields of an article
Decrement the score of an article by one.
queryset = Article.objects.all()
serializer_class = ArticleSerializer
......@@ -91,7 +91,7 @@ class Article(VoteMixin):
#: priority: True if article have priority
priority = models.BooleanField(default=False)
#: List of short tags to describe the article (eg. "Privacy", "Copyright")
#: Comma separated list of short tags to describe the article (eg: "Privacy", "Copyright").
tags = TaggableManager(blank=True)
class Meta:
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