We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b76d9d commit 2047084Copy full SHA for 2047084
README.md
@@ -144,9 +144,9 @@ class ArticleInline(InlineActionsMixin,
144
actions.append('unpublish')
145
return actions
146
147
- def unpublish(self, request, obj, inline_obj):
148
- inline_obj.status = Article.DRAFT
149
- inline_obj.save()
+ def unpublish(self, request, obj, parent_obj=None):
+ obj.status = Article.DRAFT
+ obj.save()
150
messages.info(request, _("Article unpublished"))
151
unpublish.short_description = _("Unpublish")
152
```
0 commit comments