Commit 890ad2be authored by okhin's avatar okhin 🚴

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
......@@ -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)
......
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