Skip to content
GitLab
Menu
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
890ad2be
Commit
890ad2be
authored
Mar 20, 2019
by
Okhin
Browse files
Field Article.state is protected no more to allow modification from admin page
parent
0242f21e
Pipeline
#2510
passed with stages
in 2 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/rp/models.py
View file @
890ad2be
...
...
@@ -41,7 +41,9 @@ article content. You should aim at around 500 characters. Use bracket ellipsis
class
Article
(
VoteMixin
):
#: Logical state (eg. article submitted, published, or rejected)
status
=
FSMField
(
default
=
'NEW'
,
choices
=
STATUS_CHOICES
,
protected
=
True
)
# This is unprotected because superuser should be able to change
# the status from the django admin interface
status
=
FSMField
(
default
=
'NEW'
,
choices
=
STATUS_CHOICES
)
#: Original URL
url
=
models
.
URLField
(
"URL"
,
help_text
=
URL_HELP_TEXT
)
...
...
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