Commit d49dbca7 authored by Okhin's avatar Okhin

Updating the documentation

parent 6c1c776d
Pipeline #2597 passed with stages
in 2 minutes and 56 seconds
...@@ -138,13 +138,15 @@ class Article(models.Model): ...@@ -138,13 +138,15 @@ class Article(models.Model):
@transition(field=status, source='DRAFT', target='DRAFT', @transition(field=status, source='DRAFT', target='DRAFT',
permission="rp.can_change_priority") permission="rp.can_change_priority")
def set_priority(self): def set_priority(self):
""" Set the boolean priority of an article to True. """ """ Set the boolean priority of an article to True.
The article must be a _DRAFT_"""
self.priority = True self.priority = True
@transition(field=status, source='DRAFT', target='DRAFT', @transition(field=status, source='DRAFT', target='DRAFT',
permission="rp.can_change_priority") permission="rp.can_change_priority")
def unset_priority(self): def unset_priority(self):
""" Set the boolean priority of an article to False. """ """ Set the boolean priority of an article to False.
The article must be a _DRAFT_."""
self.priority = False self.priority = False
@transition(field=status, source='DRAFT', target='DRAFT') @transition(field=status, source='DRAFT', target='DRAFT')
......
Markdown is supported
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