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
d49dbca7
Commit
d49dbca7
authored
May 14, 2019
by
Okhin
Browse files
Updating the documentation
parent
6c1c776d
Pipeline
#2597
passed with stages
in 2 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/rp/models.py
View file @
d49dbca7
...
...
@@ -138,13 +138,15 @@ class Article(models.Model):
@
transition
(
field
=
status
,
source
=
'DRAFT'
,
target
=
'DRAFT'
,
permission
=
"rp.can_change_priority"
)
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
@
transition
(
field
=
status
,
source
=
'DRAFT'
,
target
=
'DRAFT'
,
permission
=
"rp.can_change_priority"
)
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
@
transition
(
field
=
status
,
source
=
'DRAFT'
,
target
=
'DRAFT'
)
...
...
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